return CMD_ERROR;
rcp=cip->exts[chanservext];
+
+ /* If the channel doesn't currently exist, forget it. */
+ if (!cip->channel) {
+ chanservstdmessage(sender, QM_EMPTYCHAN, cip->name->content);
+ return CMD_ERROR;
+ }
if (cargc==1) {
/* Only one arg: "op me" */
}
if (donotice && bufpos) {
- sendopnoticetochannel(chanservnick, cip->channel, "%s opped %s", sender, buf);
+ sendopnoticetochannel(chanservnick, cip->channel, "%s opped %s", sender->nick, buf);
}
localsetmodeflush(&changes, 1);