]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Changed SHOWCOMMANDS format a bit.
authorsplidge <redacted>
Wed, 12 Mar 2008 17:08:09 +0000 (17:08 +0000)
committersplidge <redacted>
Wed, 12 Mar 2008 17:08:09 +0000 (17:08 +0000)
chanserv/chanservstdcmds.c

index 556427a593e49455f02788234abd3a3e28994b9c..3682784e589eff33ce3837ae2fe8d454be67a44b 100644 (file)
@@ -117,15 +117,15 @@ int cs_doshowcommands(void *source, int cargc, char **cargv) {
     summary=(cmdsummary *)cmdlist[i]->ext;
     
     if (cmdlist[i]->level & QCMD_DEV) {
-      sprintf(cmdbuf,"%s (+d)",cmdlist[i]->command->content);
+      sprintf(cmdbuf,"+d %s",cmdlist[i]->command->content);
     } else if(cmdlist[i]->level & QCMD_ADMIN) {
-      sprintf(cmdbuf,"%s (+a)",cmdlist[i]->command->content);
+      sprintf(cmdbuf,"+a %s",cmdlist[i]->command->content);
     } else if(cmdlist[i]->level & QCMD_OPER) {
-      sprintf(cmdbuf,"%s (+o)",cmdlist[i]->command->content);
+      sprintf(cmdbuf,"+o %s",cmdlist[i]->command->content);
     } else if(cmdlist[i]->level & QCMD_HELPER) {
-      sprintf(cmdbuf,"%s (+h)",cmdlist[i]->command->content);
+      sprintf(cmdbuf,"+h %s",cmdlist[i]->command->content);
     } else {
-      strcpy(cmdbuf, cmdlist[i]->command->content);
+      sprintf(cmdbuf,"   %s",cmdlist[i]->command->content);
     }
     
     if (summary->bylang[lang]) {
@@ -136,7 +136,7 @@ int cs_doshowcommands(void *source, int cargc, char **cargv) {
       message=summary->def->content;
     }
     
-    chanservsendmessage(sender, "%-20s %s",cmdbuf, message);
+    chanservsendmessage(sender, "%-20s %s",UHasHelperPriv(rup)?cmdbuf:cmdlist[i]->command->content, message);
   }
 
   chanservstdmessage(sender, QM_ENDOFLIST);