I am sending the following in a IRC bot:
bot->message("chanserv", "op #channel");
bot->raw("KICK #channel " + this->nick(args[0]) + " :RIPIP");
sleep(2000); // even tried sleepin
bot->message("chanserv", "deop #channel");
I see it sent across the socket
PRIVMSG chanserv :op #channel
KICK #channel baduser :RIPIP
PRIVMSG chanserv :deop #channel
:hobana.freenode.net 482 username #channel :You're not a channel operator
But then it spits back a packet saying you're not an operator, then the op/de-op response packets.