]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Re-disable infolines. Removed most references and flags also.
authorsplidge <redacted>
Wed, 12 Mar 2008 22:44:27 +0000 (22:44 +0000)
committersplidge <redacted>
Wed, 12 Mar 2008 22:44:27 +0000 (22:44 +0000)
chanserv/chanserv.h
chanserv/database/chanservdb_messages.c
chanserv/usercmds/commandlist.c
chanserv/usercmds/info.c
chanserv/usercmds/userflags.c
chanserv/usercmds/whois.c

index 27a6d3d5d73e3d79ea721cd5d9dc5723270069f7..35c5389c4b8b29b13254db813805e3105c62da0d 100644 (file)
 #define   QCFLAG_USERCONTROL (QCFLAG_AUTOOP|QCFLAG_BITCH|QCFLAG_AUTOLIMIT| \
                               QCFLAG_ENFORCE|QCFLAG_FORCETOPIC|QCFLAG_AUTOVOICE| \
                               QCFLAG_PROTECT|QCFLAG_TOPICSAVE|QCFLAG_VOICEALL| \
-                              QCFLAG_WELCOME|QCFLAG_KNOWNONLY|QCFLAG_INFO)
+                              QCFLAG_WELCOME|QCFLAG_KNOWNONLY)
 
 #define   QCFLAG_ALL          0x7fff
 
 #define   QCUFLAG_SELFCON   (QCUFLAG_OP | QCUFLAG_VOICE | QCUFLAG_AUTOOP | QCUFLAG_AUTOVOICE | \
                              QCUFLAG_TOPIC | QCUFLAG_INFO)
 
-#define   QCUFLAGS_PUNISH   (QCUFLAG_BANNED | QCUFLAG_QUIET | QCUFLAG_DENY | QCUFLAG_NOINFO)
-#define   QCUFLAGS_PERSONAL (QCUFLAG_INFO | QCUFLAG_HIDEWELCOME | QCUFLAG_AUTOINVITE)
+#define   QCUFLAGS_PUNISH   (QCUFLAG_BANNED | QCUFLAG_QUIET | QCUFLAG_DENY)
+#define   QCUFLAGS_PERSONAL (QCUFLAG_HIDEWELCOME | QCUFLAG_AUTOINVITE)
 
 #define   QCUFLAG_ALL         0xffff
 
index d6457b40d7f7fe465ee53513faeca69e0c4629eb..966f760d6a370631a7056ebb467cda0fccf5d159 100644 (file)
@@ -24,7 +24,7 @@ char *defaultmessages[MAXMESSAGES] = {
   /* 15 */ "User %s is not authed.",
   /* 16 */ "Known users on %s:",
   /* 17 */ "Username        Flags",
-  /* 18 */ "Username        Flags         Last join       Last changed    Info",
+  /* 18 */ "Username        Flags         Last join       Last changed    ",
   /* 19 */ "No known users found on %s.",
   /* 20 */ "Flags for %s on %s: %s",
   /* 21 */ "User %s is not known on %s.",
index f0e486bc4ad819db5f33261424608d6b29a8783d..922cb085fc2b53d44bb909edd4ff4084fdc4b16c 100644 (file)
@@ -33,7 +33,7 @@ void _init() {
   chanservaddcommand("cleanupdb", QCMD_DEV, 0, csu_docleanupdb, "Clean up database.", "Usage: cleanupdb\nCleans up inactive accounts, unused accounts and inactive channels.\n");
   chanservaddcommand("deluser", QCMD_OPER, 2, csu_dodeluser, "Removes a user from the bot.", "Usage: deluser <username>\nRemoves the specified username from the bot.\n");
   chanservaddcommand("domainmode", QCMD_OPER, 4, csu_dodomainmode, "Set/Unset Mail Domain Modes", "Usage: domainmode <domain> [<flags>]\nViews or modifies the domainmode flags for specified domain.\nFlags consist of:\n  +b          don't allow email addresses from this domain.\n  +u <limit>  don't allow more than <limit> accounts to share\n              email addresses on this domain.\n  +l <limit>  don't allow more than <limit> accounts with\n              email addresses on this domain.\nNote that domains are hierarchical, so setting +b on org will\nprevent operations from quakenet.org, fish.quakenet.org, etc.\n");
-  chanservaddcommand("info", QCMD_AUTHED, 2, csu_doinfo, "Shows or changes info line.", "Usage: INFO [<channel>] [<info line>]\nShows or updates your current info line, which can be configured to be displayed\nwhen you join a channel.  Where:\nchannel   - channel to set info line on.  If no channel is specified, your default\n            info line will be used.  If a channel is specified you must be known\n            (+k) on the channel.\ninfo line - new info line to set.  If not specified, the current info line will be\n            displayed.  If \"none\" is specified, the info line will be cleared.\n");
+  chanservaddcommand("info", QCMD_AUTHED | QCMD_OPER, 2, csu_doinfo, "Shows or changes info line.", "Usage: INFO [<channel>] [<info line>]\nShows or updates your current info line, which can be configured to be displayed\nwhen you join a channel.  Where:\nchannel   - channel to set info line on.  If no channel is specified, your default\n            info line will be used.  If a channel is specified you must be known\n            (+k) on the channel.\ninfo line - new info line to set.  If not specified, the current info line will be\n            displayed.  If \"none\" is specified, the info line will be cleared.\n");
   chanservaddcommand("language", QCMD_AUTHED | QCMD_OPER, 1, csu_dolanguage, "Shows or changes your current language.", "Usage: language [<language code>]\nShows your currently selected language and a list of others\nby default, changes your language when you specify a language code.\n");
   chanservaddcommand("listflags", QCMD_OPER, 1, csu_dolistflags, "List users with the specified user flags.", "Usage: listflags <flags>\nShows a list of all users with the specified user flags.\n");
   chanservaddcommand("maillock", QCMD_OPER, 3, csu_domaillock, "Set/unset/list mail lock patterns", "Usage: maillock <-list|-add|-del> <pattern> [<reason>]\nManipulates the list of mail lock patterns.\nAny email address matching the pattern will be refused in HELLO/EMAIL.\nA reason is optional for -list, but recommended.\n");
index 02e1f306c7a3ae5f98189a43e3491d1151b7f563..ca959f6198bf0b27335d5f6fe18a2f34f0763696 100644 (file)
@@ -2,7 +2,7 @@
  *
  *
  * CMDNAME: info
- * CMDLEVEL: QCMD_AUTHED
+ * CMDLEVEL: QCMD_AUTHED | QCMD_OPER
  * CMDARGS: 2
  * CMDDESC: Shows or changes info line.
  * CMDFUNC: csu_doinfo
index 9cc7a1cb22e06d86fb5535be4c5b74d5fb04b5d5..503dbe1aff7c82c87127c14b4c591f971785f2e7 100644 (file)
@@ -56,7 +56,7 @@ int csu_douserflags(void *source, int cargc, char **cargv) {
     strcpy(flagbuf,printflags(target->flags, ruflags));
     oldflags=target->flags;
 
-    changemask=QUFLAG_NOTICE | QUFLAG_INFO;
+    changemask=QUFLAG_NOTICE;
 
     if (target==rup) {
       /* If you're changing yourself, you can give up the "status" flags and add/remove notice */
index 9eedd2a60f6998ca676dbed4b7bd931697909c1c..4b6dbb1520582dacf42aaba84b4ee8d24619876a 100644 (file)
@@ -129,7 +129,7 @@ int csu_dowhois(void *source, int cargc, char **cargv) {
     chanservstdmessage(sender, QM_WHOIS_EMAILSET, buf);    
   }
 
-  if (target->info) {
+  if (target->info && *target->info->content) {
     chanservstdmessage(sender, QM_WHOIS_INFO, target->info->content);
   }