]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fixed the channel warnings in op.c and voice.c that were working more by luck than...
authorsplidge <redacted>
Sun, 24 Aug 2008 15:49:27 +0000 (16:49 +0100)
committersplidge <redacted>
Sun, 24 Aug 2008 15:49:27 +0000 (16:49 +0100)
chanserv/chancmds/op.c
chanserv/chancmds/voice.c

index f114118cb6f37c1f5ff9347bdd323718f1c613c5..b4a9cc37e7f61c0d63f33c95bc7744947d6a4f7b 100644 (file)
@@ -143,7 +143,7 @@ int csc_doop(void *source, int cargc, char **cargv) {
   }
 
   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);
index 2a4a2bbb6aa782978c5322660e55b17294d39ef4..247555a58842d241c886d4c96a4cc0d8c33154c0 100644 (file)
@@ -140,7 +140,7 @@ int csc_dovoice(void *source, int cargc, char **cargv) {
   }
 
   if (donotice && bufpos) {
-    sendopnoticetochannel(chanservnick, cip->channel, "%s voiced %s", sender, buf);
+    sendopnoticetochannel(chanservnick, cip->channel, "%s voiced %s", sender->nick, buf);
   }
 
   localsetmodeflush(&changes, 1);