]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chancmds/channelcomment.c
fix bug in G stats
[irc/quakenet/newserv.git] / chanserv / chancmds / channelcomment.c
index 1b5023ddfdd6fb16016bc2c7b1e87a56b79f1416..4290b82c56702c51dce48f449825b97b9891c7f8 100644 (file)
@@ -7,6 +7,10 @@
  * CMDDESC: Shows or changes the staff comment for a channel.
  * CMDFUNC: csc_dochannelcomment
  * CMDPROTO: int csc_dochannelcomment(void *source, int cargc, char **cargv);
+ * CMDHELP: Usage: channelcomment <channel> [[+]<comment>]
+ * CMDHELP: Sets or views a comment for a channel.
+ * CMDHELP: Comments can be appended to by prefixing <comment> with +.
+ * CMDHELP: Use 'none' for <comment> to unset.
  */
 
 #include "../chanserv.h"
@@ -54,7 +58,7 @@ int csc_dochannelcomment(void *source, int cargc, char **cargv) {
        } else {
          bufpos=0;
        }
-       strncpy(buf+bufpos, cargv[1]+1, 250-bufpos);
+       strncpy(buf+bufpos, cargv[1]+1, 280-bufpos);
       } else {
        strncpy(buf, cargv[1], 250);
       }