]> jfr.im git - irc/evilnet/x3.git/commitdiff
Author: Rubin
authorrubin <redacted>
Thu, 3 Jun 2004 23:34:03 +0000 (23:34 +0000)
committerrubin <redacted>
Thu, 3 Jun 2004 23:34:03 +0000 (23:34 +0000)
Log message:
Updated help system to be less cryptic. Started work on chanserv
help files.
Renamed master to manager

chanserv.help
src/chanserv.c
src/chanserv.h
src/chanserv.help
src/modcmd.c
src/nickserv.c
srvx

index 45f9e1de5432f309137b8987ccb1840abca41cbe..97849d3bbd0702bfd85b8167ecf42481c1a69f7f 100644 (file)
@@ -11,7 +11,7 @@
         "  ACCESS      Check someone's access in a channel.",
         "  MYACCESS    Show all channels where you have access.",
         "  ADDCOOWNER  Give another person coowner status in a channel.",
-        "  ADDMASTER                       master status in a channel.",
+        "  ADDMANAGER                       manager status in a channel.",
         "  ADDOP                           op status in a channel.",
         "  ADDPEON                         peon status in a channel.",
         "  GIVEOWNERSHIP    Give ownership to another user in the channel.",
@@ -20,7 +20,7 @@
         "  DELUSER     Remove a person's access from a channel.",
         "  DELETEME    Remove your own access from a channel.",
         "  MDELCOOWNER Remove coowners with accounts matching a mask.",
-        "  MDELMASTER         masters with accounts matching a mask.",
+        "  MDELMANAGER         managers with accounts matching a mask.",
         "  MDELOP             ops with accounts matching a mask.",
         "  MDELPEON           peons with accounts matching a mask.",
        "  TRIM        Remove users inactive for a certain period.",
@@ -54,7 +54,7 @@
         "  OPEN        Remove +ilk channel modes and any bans on you from a channel.",
         "  USERS       List all users of a channel.",
         "  CLIST                coowners of a channel.",
-        "  MLIST                masters of a channel.",
+        "  MLIST                managers of a channel.",
         "  OLIST                ops of a channel.",
         "  PLIST                peons of a channel.",    
         "  BANS        List all the bans for a channel.",
         "$uSee Also:$u bans, delban, mdelban");
 "ADDUSER" ("/msg $C ADDUSER <#channel> <nick|*account> <level>",
         "This command adds someone to the channel user list with the specified access level.  (You may only add users to levels less than your own.)",
-        "The level may be one of $bpeon$b, $bop$b, $bmaster$b, $bcoowner$b, $bowner$b, or a number between 1 and 500.  Only network staff may add level 500 users (owners).",
+        "The level may be one of $bpeon$b, $bop$b, $bmanager$b, $bcoowner$b, $bowner$b, or a number between 1 and 500.  Only network staff may add level 500 users (owners).",
         "$uSee Also:$u deluser, users");
 "ADDTIMEDBAN" ("/msg $C ADDTIMEDBAN <#channel> <mask|nick> <Duration> [Reason]",
         "Adds an automatically expiring ban to the channel ban list. This command behaves in the exact same fashion as ADDBAN with the exception that the bans are automatically removed after the user-supplied duration. If it exactly matches an existing ban already in the list, the reason will be updated. If the existing ban was a timed ban, it will be extended. Timed bans can be removed with the DELBAN command, as with permanent bans.",
 "INFO" ("/msg $C INFO <#channel>",
         "This command responds with various pieces of information about a channel's users, status, and registration.");
 "INVITE" ("/msg $C INVITE <#channel> [nick [reason]]",
-        "Invites a user into the channel, sending them a reason if one is provided. However, unless you have at least $bmaster$b access, you can only invite yourself with this command. If no nick is provided, the user issuing the command will be invited.");
+        "Invites a user into the channel, sending them a reason if one is provided. However, unless you have at least $bmanager$b access, you can only invite yourself with this command. If no nick is provided, the user issuing the command will be invited.");
 "INVITEME" ("/msg $S INVITEME <#channel>",
         "Invites you into the channel.");
 "IRCOPS" ("/msg $C IRCOPS",
 "MDELCOOWNER" ("/msg $C MDELCOOWNER <#channel> <pattern>",
         "Deletes all coowners with accounts matching the given pattern from the channel user list.",
         "$uSee Also:$u clist, delcoowner");
-"MDELMASTER" ("/msg $C MDELMASTER <#channel> <pattern>",
-        "Deletes all masters with accounts matching the given pattern from the channel user list.",
+"MDELMANAGER" ("/msg $C MDELMANAGER <#channel> <pattern>",
+        "Deletes all managers with accounts matching the given pattern from the channel user list.",
         "$uSee Also:$u mdelban, mdelcoowner, mdelop, mdelowner, mdelpeon");
 "MDELOP" ("/msg $C MDELOP <#channel> <pattern>",
         "Deletes all ops with accounts matching the given pattern from the channel user list.");
 "MDELOWNER" ("/msg $C MDELOWNER <#channel> <pattern>",
         "Deletes all owners with accounts matching the given pattern from the channel user list.",
-        "$uSee Also:$u addowner, mdelcoowner, mdelmaster, mdelop, mdelpeon");
+        "$uSee Also:$u addowner, mdelcoowner, mdelmanager, mdelop, mdelpeon");
 "MDELPEON" ("/msg $C MDELPEON <#channel> <pattern>",
         "Deletes all peons with accounts matching the given pattern from the channel user list.",
-        "$uSee Also:$u addpeon, mdelcoowner, mdelmaster, mdelop");
+        "$uSee Also:$u addpeon, mdelcoowner, mdelmanager, mdelop");
 "MERGE" ("/msg $C MERGE <#channel> <destination>",
         "Merges the source channel's registration, users, bans, and other data into the target channel. Users with access to both the source and target channels will retain the higher access level; if the access levels are the same, the more recent seen time is kept. Bans are also merged, with bans expiring later taking precedence.",
         "$uSee Also:$u register, move, unregister");
 "MLIST" ("/msg $C MLIST <#channel> [mask]",
-        "This command lists all users of level $bMaster$b on a channel's userlist. If a mask is supplied, only masters matching the mask will be shown.",
-        "$uSee Also:$u addmaster, delmaster, mdelmaster, users");
+        "This command lists all users of level $bManager$b on a channel's userlist. If a mask is supplied, only managers matching the mask will be shown.",
+        "$uSee Also:$u addmanager, delmanager, mdelmanager, users");
 "MODE" ("/msg $C MODE <#channel>",
         "Resets the modes in the channel to their default.",
         "$uSee Also:$u open, set");
         "This command lists all users of level $bOwner$b on a channel's userlist. If a mask is supplied, only owners matching the mask will be shown.",
         "$uSee Also:$u addcoowner, delcoowner, mdelcoowner, users");
 
-"I'VE FALLEN AND I CAN'T GET UP" ("$bHelp, I've fallen and I can't get up$b!",
-        "If you drank your milk, you might not feel so vulnerable right now.",
-        "So next time you're sitting in front of a tall frosty glass of milk, just think how much it will help build up your bone structure.");
-"ME"   "Help you? You're beyond help.";
-"Zoot" "Crash it again, please?";
-"Entrope" "C Code.  C Code Run.  Run, Code, Run!!    (please?)";
-"emacs" ("A novice of the temple once approached the Chief Priest with a question.",
-        "The novice asked, \"Master, does Emacs have the Buddha nature?\"",
-        "The Chief Priest had been in the temple for many years and could be relied upon to know these things.  He thought for several minutes before replying.",
-        "\"I don't see why not.  It's got bloody well everything else.\"",
-        "With that, the Chief Priest went to lunch.  The novice suddenly achieved enlightenment, several years later.");
-"thanks" ("The srvx developers would like to thank the following people for their help in making srvx as polished as it is today:",
-        "$bGameSurge IRC Network$b - All the users and staff there bear with our shortcomings and bugs and let us know what needs to be fixed.",
-        "$bIC5 Networks$b (and JohnM in particular) - Never afraid to critique things, even if we are the 800 pound gorilla.",
-        "$bMeeko, eraser, hock(ey), KilledInAction, MadEwokHerd, Milon and Shoat$b - Hardcore beta testing and bug finding on the testnet.",
-        "$bCrips and feigling$b - Reading through all the boring messages and finding ways to make them clearer.");
+"ME"   "I am at your service. /msg $C help command, or /join #help ";
+"thanks" ("AfterNET's own srvx2 is based on the hard work of the origional srvx developers.  They would like to thank the following people for their help in making the origional srvx:",
+        "     $bGameSurge IRC Network$b - All the users and staff there bear with our shortcomings and bugs and let us know what needs to be fixed.",
+        "     $bIC5 Networks$b (and JohnM in particular) - Never afraid to critique things, even if we are the 800 pound gorilla.",
+        "     $bMeeko, eraser, hock(ey), KilledInAction, MadEwokHerd, Milon and Shoat$b - Hardcore beta testing and bug finding on the testnet.",
+        "     $bCrips and feigling$b - Reading through all the boring messages and finding ways to make them clearer.",
+        "Futher, the AfterNET srvx2 team would like to thank:",
+        "     $breed$b - who tirelessly nagged us to upgrade our services",
+        "$bAfterNET Users and Opers$b - who faught both for and against the change, for the better of Afternet.");
index 60f8991681d7778b00ba994e46a4de1b61368eaa..ffeccf7ba92edb34549233f0fdeec356fc36e27c 100644 (file)
@@ -569,7 +569,7 @@ static const struct {
 } accessLevels[] = {
     { "peon", "Peon", UL_PEON, '+' },
     { "op", "Op", UL_OP, '@' },
-    { "master", "Master", UL_MASTER, '%' },
+    { "manager", "Manager", UL_MANAGER, '%' },
     { "coowner", "Coowner", UL_COOWNER, '*' },
     { "owner", "Owner", UL_OWNER, '!' },
     { "helper", "BUG:", UL_HELPER, 'X' }
@@ -2359,9 +2359,9 @@ static CHANSERV_FUNC(cmd_mdelcoowner)
     return cmd_mdel_user(user, channel, UL_COOWNER, UL_COOWNER, argv[1], cmd);
 }
 
-static CHANSERV_FUNC(cmd_mdelmaster)
+static CHANSERV_FUNC(cmd_mdelmanager)
 {
-    return cmd_mdel_user(user, channel, UL_MASTER, UL_MASTER, argv[1], cmd);
+    return cmd_mdel_user(user, channel, UL_MANAGER, UL_MANAGER, argv[1], cmd);
 }
 
 static CHANSERV_FUNC(cmd_mdelop)
@@ -3116,7 +3116,7 @@ static CHANSERV_FUNC(cmd_unbanme)
     long flags = ACTION_UNBAN;
 
     /* remove permanent bans if the user has the proper access. */
-    if(uData->access >= UL_MASTER)
+    if(uData->access >= UL_MANAGER)
        flags |= ACTION_DEL_BAN;
 
     argv[1] = user->nick;
@@ -3523,12 +3523,12 @@ static CHANSERV_FUNC(cmd_clist)
 
 static CHANSERV_FUNC(cmd_mlist)
 {
-    return cmd_list_users(CSFUNC_ARGS, UL_MASTER, UL_COOWNER-1);
+    return cmd_list_users(CSFUNC_ARGS, UL_MANAGER, UL_COOWNER-1);
 }
 
 static CHANSERV_FUNC(cmd_olist)
 {
-    return cmd_list_users(CSFUNC_ARGS, UL_OP, UL_MASTER-1);
+    return cmd_list_users(CSFUNC_ARGS, UL_OP, UL_MANAGER-1);
 }
 
 static CHANSERV_FUNC(cmd_plist)
@@ -6666,7 +6666,7 @@ chanserv_channel_read(const char *key, struct record_data *hir)
             else switch(((count <= levelOptions[lvlOpt].old_idx) ? str : CHANNEL_DEFAULT_OPTIONS)[levelOptions[lvlOpt].old_idx])
             {
             case 'c': lvl = UL_COOWNER; break;
-            case 'm': lvl = UL_MASTER; break;
+            case 'm': lvl = UL_MANAGER; break;
             case 'n': lvl = UL_OWNER+1; break;
             case 'o': lvl = UL_OP; break;
             case 'p': lvl = UL_PEON; break;
@@ -7115,21 +7115,21 @@ init_chanserv(const char *nick)
     DEFINE_COMMAND(unregister, 1, MODCMD_REQUIRE_AUTHED|MODCMD_REQUIRE_REGCHAN, "flags", "+loghostmask", NULL);
     DEFINE_COMMAND(merge, 2, MODCMD_REQUIRE_AUTHED|MODCMD_REQUIRE_REGCHAN, "access", "owner", NULL);
 
-    DEFINE_COMMAND(adduser, 3, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
-    DEFINE_COMMAND(deluser, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
-    DEFINE_COMMAND(suspend, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
-    DEFINE_COMMAND(unsuspend, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
+    DEFINE_COMMAND(adduser, 3, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
+    DEFINE_COMMAND(deluser, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
+    DEFINE_COMMAND(suspend, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
+    DEFINE_COMMAND(unsuspend, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
     DEFINE_COMMAND(deleteme, 1, MODCMD_REQUIRE_CHANUSER, NULL);
 
     DEFINE_COMMAND(mdelowner, 2, MODCMD_REQUIRE_CHANUSER, "flags", "+helping", NULL);
     DEFINE_COMMAND(mdelcoowner, 2, MODCMD_REQUIRE_CHANUSER, "access", "owner", NULL);
-    DEFINE_COMMAND(mdelmaster, 2, MODCMD_REQUIRE_CHANUSER, "access", "coowner", NULL);
-    DEFINE_COMMAND(mdelop, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
-    DEFINE_COMMAND(mdelpeon, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
+    DEFINE_COMMAND(mdelmanager, 2, MODCMD_REQUIRE_CHANUSER, "access", "coowner", NULL);
+    DEFINE_COMMAND(mdelop, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
+    DEFINE_COMMAND(mdelpeon, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
 
-    DEFINE_COMMAND(trim, 3, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
+    DEFINE_COMMAND(trim, 3, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
     DEFINE_COMMAND(opchan, 1, MODCMD_REQUIRE_REGCHAN|MODCMD_NEVER_CSUSPEND, "access", "1", NULL);
-    DEFINE_COMMAND(clvl, 3, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
+    DEFINE_COMMAND(clvl, 3, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
     DEFINE_COMMAND(giveownership, 2, MODCMD_REQUIRE_CHANUSER, "access", "owner", "flags", "+loghostmask", NULL);
 
     DEFINE_COMMAND(up, 1, MODCMD_REQUIRE_CHANUSER, NULL);
@@ -7151,10 +7151,10 @@ init_chanserv(const char *nick)
     DEFINE_COMMAND(topic, 1, MODCMD_REQUIRE_REGCHAN, "template", "op", "flags", "+never_csuspend", NULL);
     DEFINE_COMMAND(mode, 1, MODCMD_REQUIRE_REGCHAN, "template", "op", NULL);
     DEFINE_COMMAND(inviteme, 1, MODCMD_REQUIRE_CHANNEL, "access", "1", NULL);
-    DEFINE_COMMAND(invite, 1, MODCMD_REQUIRE_CHANNEL, "access", "master", NULL);
+    DEFINE_COMMAND(invite, 1, MODCMD_REQUIRE_CHANNEL, "access", "manager", NULL);
     DEFINE_COMMAND(set, 1, MODCMD_REQUIRE_CHANUSER, "access", "op", NULL);
-    DEFINE_COMMAND(wipeinfo, 2, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
-    DEFINE_COMMAND(resync, 1, MODCMD_REQUIRE_CHANUSER, "access", "master", NULL);
+    DEFINE_COMMAND(wipeinfo, 2, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
+    DEFINE_COMMAND(resync, 1, MODCMD_REQUIRE_CHANUSER, "access", "manager", NULL);
 
     DEFINE_COMMAND(events, 1, MODCMD_REQUIRE_REGCHAN, "flags", "+nolog", "access", "350", NULL);
     DEFINE_COMMAND(addban, 2, MODCMD_REQUIRE_REGCHAN, "access", "250", NULL);
index bd437a8ce22de492a500c2b9a96a074121e23e26..03fa291beeb9596d02e2a4a72251f43eddab4ee8 100644 (file)
@@ -26,8 +26,8 @@
 enum UL_ALIASES {
     UL_PEON = 100,
     UL_OP = 200,
-    UL_MASTER = 300,
-    UL_PRESENT = UL_MASTER,
+    UL_MANAGER = 300,
+    UL_PRESENT = UL_MANAGER,
     UL_COOWNER = 400,
     UL_OWNER = 500,
     UL_HELPER = 600,
index 45f9e1de5432f309137b8987ccb1840abca41cbe..7043f9d6aac6566ce01a40b1cd855504fdf3b1fa 100644 (file)
-"<INDEX>" ("$b$C Help$b",
-        "$b$C$b is a channel service bot, intended primarily to prevent and defend against channel takeovers. It also includes convenience features aimed at making it easier to maintain control over all aspects of your channel.",
-        "$b$C$b command categories:",
-        "  USER            User management.",
-        "  CHANNEL         Channel management.",
-        "  BAN MANAGEMENT  Ban management.",
-        "  INFORMATION     Informative commands.",
-        "  OPER            Helper/IRC Operator commands."
+"<INDEX>" ("=--------------- $b$C Help$b --------------=",
+           " Hello there!                           ",
+           " Please select the area you would like  ",
+           " help with from the list below. The     ",
+           " help system  uses the format:          ",
+           "   $b/MSG $C HELP <$bsubject$b>$b       ",
+           " For example: $b/msg $C HELP UBM$b      ",
+           " shows help with the UnBanMe command.   ",
+           "=--------------------------------------=",
+           " GENERAL  - How to use $C  ",
+           " USER     - Commands to add and remove",
+           "            bans, ops and managers from ",
+           "            your channel.",
+           " CHANNEL  - Other channel related info",
+           "            like setting permanent modes",
+           "            and topic.",
+           " INFORMATION - Informative commands.",
+           " OPER     - Commands for IRC Operators.",
+           "=--------------------------------------=",
 );
-"USER" ("$bUser Management Commands:$b",
-        "  ACCESS      Check someone's access in a channel.",
-        "  MYACCESS    Show all channels where you have access.",
-        "  ADDCOOWNER  Give another person coowner status in a channel.",
-        "  ADDMASTER                       master status in a channel.",
-        "  ADDOP                           op status in a channel.",
-        "  ADDPEON                         peon status in a channel.",
-        "  GIVEOWNERSHIP    Give ownership to another user in the channel.",
-        "  CLVL        Change a person's access level in a channel.",
-        "  ADDUSER     Give another person access in a channel.",
-        "  DELUSER     Remove a person's access from a channel.",
-        "  DELETEME    Remove your own access from a channel.",
-        "  MDELCOOWNER Remove coowners with accounts matching a mask.",
-        "  MDELMASTER         masters with accounts matching a mask.",
-        "  MDELOP             ops with accounts matching a mask.",
-        "  MDELPEON           peons with accounts matching a mask.",
-       "  TRIM        Remove users inactive for a certain period.",
-        "  UP          Give you ops in a channel you have access to.",
-        "  DOWN        Remove your ops in a channel.",
-        "  UPALL       Give you ops in all channels you have access to.",
-        "  DOWNALL     Remove your ops in all channels.",
-        "  OP          Give ops to the specified user.",
-        "  DEOP        Remove ops from the specified user.",
-        "  VOICE       Give voice to the specified user.",
-        "  DEVOICE     Remove voice from the specified user.",
-        "  USET        Set channel user options.",
-        "  SUSPEND     Suspend a user's access to a channel.",
-        "  UNSUSPEND   Restore a user's access to a channel.",
-        "  WIPEINFO    Remove a lower-ranked user's infoline."
+"USER"     ("=-- $bUserlist Management Commands:$b ---=",
+            " $bUSERS$b       Show the channels userlist.",
+            " $bCLIST$b       Show all COOWNERs of a channel.",
+            " $bMLIST$b       Show all MANAGERs of a channel.",
+            " $bOLIST$b       Show all OPs of a channel.",
+            " $bPLIST$b       Show all PEONs of a channel.",    
+            " $bBANS$b        Show all  $ulasting$u bans in a channel.",
+            " $bACCESS$b      Check someone's access level in a channel.",
+            " $bCLVL$b        Change a person's access level in a channel.",
+            " $bUSET$b        Set a channel user's options (autos, info).",
+            " $bSEEN$b        Find out the last time a user was in a channel.",
+            "$b$b",
+            " $bADDPEON$b     Add a user as a PEON in a channel.",
+            " $bADDOP$b       Add a user as an OP in a channel.",
+            " $bADDMANAGER$b  Add a user as a MANAGER in a channel.",
+            " $bADDCOOWNER$b  Add a user as COOWNER in a channel.",
+            " $bADDUSER$b     A more advanced way to add users.",
+            " $bADDBAN$b      Add a $upermanent$u ban for a user.",
+            " $bADDTIMEDBAN$b Add a $ulasting$u ban that expires in the specified time.",
+            "$b$b",
+            " $bDELUSER$b     Delete a user from the userlist.",
+            " $bMDELCOOWNER$b Mass-delete coowners with accounts matching a mask.",
+            " $bMDELMANAGER$b Mass-delete managers with accounts matching a mask.",
+            " $bMDELOP$b      Mass-delete ops with accounts matching a mask.",
+            " $bMDELPEON$b    Mass-delete peons with accounts matching a mask.",
+            " $bDELBAN$b      Remove the specified $upermanent$u ban from memory.",
+            " $bWIPEINFO$b    Remove a lower-ranked user's infoline.",
+            " $bTRIM$b        Delete users who are inactive.",
+            " $bSUSPEND$b     Suspend a user's access to a channel.",
+            " $bUNSUSPEND$b   Restore a user's access to a channel.",
+            "$b$b",
+            " $bMYACCESS$b    Show all channels where you have access.",
+            " $bDELETEME$b    Delete YOURSELF from the userlist.",
+            " $bGIVEOWNERSHIP$b Give away ownership to another user.",
+            "=------------- End of Help ------------="
 );
-"BAN MANAGEMENT" ("$bBan Management Commands:$b",
-        "  KICK        Kick a user from a channel.",
-        "  BAN         Ban a user from a channel.",
-        "  KICKBAN     Kick and ban a user from a channel.",
-        "  BANS        List lasting bans in a channel.",
-        "  ADDBAN      Add a permanent ban for a user.",
-        "  ADDTIMEDBAN Add a ban that expires in the specified time.",
-        "  UNBAN       Remove the specified ban from the channel.",
-        "  DELBAN      Remove the specified permanent ban from memory.",
-       "  TRIM        Remove bans inactive for a certain period.",
-        "  UNBANME     Remove a ban matching your hostmask from specified channel.",
-        "  UNBANALL    Remove all bans from a channel."
+
+"CHANNEL"  ("=-------- $bChannel Commands:$b ---------=",
+            " $bSET$b         Change various channel settings.",
+            " $bTOPIC$b       Set the current topic, or reset it to the default topic.",
+            " $bMODE$b        Change a channel mode.",
+            " $bOPEN$b        Remove +ilk channel modes and any bans on you from a channel.",
+            "*$bNOTE$b        Set a note on a channel.",
+            "*$bDELNOTE$b     Remove a note from a channel.",
+            "$b$b",
+            " $bUP$b          Give you ops in a channel.",
+            " $bDOWN$b        Remove your ops in a channel.",
+            " $bUPALL$b       Give you ops in all channels you have access to.",
+            " $bDOWNALL$b     Remove your ops in all channels.",
+            " $bOP$b          Give ops to the specified user.",
+            " $bDEOP$b        Remove ops from the specified user.",
+            " $bVOICE$b       Give voice to the specified user.",
+            " $bDEVOICE$b     Remove voice from the specified user.",
+            " $bRESYNC$b      Synchronize ops and voice with the channel userlist.",
+            "$b$b",
+            " $bKICK$b        Kick a user from a channel.",
+            " $bBAN$b         Ban a user from a channel.",
+            " $bUNBAN$b       Remove the specified ban from the channel.",
+            " $bKICKBAN$b     Kick and ban a user from a channel.",
+            " $bUNBANME$b     Remove a ban matching your hostmask from specified channel.",
+            " $bUNBANALL$b    Remove all bans from a channel.",
+            " $bINVITE$b      Admit a user to pass through +ib modes in your channel.",
+            "$b$b",
+            " $bINFO$b        Show numerical information about the users in a channel.",
+            " $bEVENTS$b      View a list of events relevant to a channel.",
+            "=------------- End of Help ------------="
 );
-"CHANNEL" ("$bChannel Management Commands:$b",
-        "  OPEN        Remove +ilk channel modes and any bans on you from a channel.",
-        "  USERS       List all users of a channel.",
-        "  CLIST                coowners of a channel.",
-        "  MLIST                masters of a channel.",
-        "  OLIST                ops of a channel.",
-        "  PLIST                peons of a channel.",    
-        "  BANS        List all the bans for a channel.",
-        "  TOPIC       Set the current topic, or reset it to the default topic.",
-        "  MODE        Change a channel mode.",
-        "  INVITE      Invite new users to your channel.",
-        "  INFO        Show numerical information about the users in a channel.",
-        "  SET         Change various channel settings.",
-        "  EVENTS      View a list of events relevant to a channel.",
-        "  NOTE        Set a note on a channel.",
-        "  DELNOTE     Remove a note from a channel.",
-        "  RESYNC      Synchronize ops and voice with the channel userlist."
+"INFORMATION"     ("=------- $bInformative Commands:$b ------=",
+            " $bVERSION$b     Check the current running version of $C.",
+            " $bNETINFO$b     Check current network-wide information.",
+            " $bSTAFF$b       Get a list of all the current staff.",
+            " $bIRCOPS$b      Get a list of all the current IRC operators.",
+            " $bHELPERS$b     Get a list of all the current support helpers.",
+            " $bPEEK$b        Reveal information on a channel's modes, topic and ops.",
+            " $bCOMMAND$b     Display some information about a command.",
+            "=------------- End of Help ------------="
 );
-"INFORMATION" ("$bInformative Commands:$b",
-        "  VERSION     Check the current running version of $C.",
-        "  NETINFO     Check current network-wide information.",
-        "  STAFF       Get a list of all the current staff.",
-        "  IRCOPS                                    IRC operators.",
-        "  HELPERS                                   support helpers.",
-        "  PEEK        Reveal information on a channel's modes, topic and ops.",
-        "  SEEN        Find out the last time a user was in a channel.",
-        "  COMMAND     Display some information about a command."
+"OPER"     ("=-- $bHelper/IRC Operator commands:$b ---=",
+            " $bGOD$b         Turn security override on/off.",
+            " $bOPCHAN$b      Force $C to op itself in a channel.",
+            "$b$b",
+            " $bSEARCH$b      Find registered channel matching criteria.",
+            " $bREGISTER$b    Register a new channel with $C.",
+            " $bNOREGISTER$b  Add a channel to the do-not-register list.",
+            " $bALLOWREGISTER$b Remove a channel from the do-not-register list.",
+            " $bUNREGISTER$b  Remove $C from a registered channel.",
+            " $bMOVE$b        Transition one channel's registration to a new channel name.",
+            " $bMERGE$b       Merges a source and target channels' registration, ",
+            "                 users, bans, and other data into the target channel.",
+            " $bUNVISITED$b   List all channels that have not been visited in specified duration.",
+            " $bEXPIRE$b      Automatically unregister old channels.",
+            "$b$b",
+            " $bADDOWNER$b    Add a new owner to a channel.",
+            " $bDELOWNER$b    Remove a current owner from a channel.",
+            " $bMDELOWNER$b   Remove multiple owners by account mask from a channel.",
+            " $bCSUSPEND$b    Remove $C from a channel (preserving user data).",
+            " $bCUNSUSPEND$b  Restore $C to a channel that was suspended.",
+            "$b$b",
+            " $bCREATENOTE$b  Create a new note type.",
+            " $bREMOVENOTE$b  Remove an existing note type.",
+            "*$bSAY$b         Have $C say a message in a channel.",
+            "*$bEMOTE$b       Equivalent to $C doing a /me in a channel.",
+            "=------------- End of Help ------------="
 );
-"OPER" ("$bHelper/IRC Operator commands:$b",
-        "  SAY         Have $C say a message in a channel.",
-        "  EMOTE       Equivalent to $C doing a /me in a channel.",
-        "  GOD         Turn security override on/off.",
-        "  EXPIRE      Automatically unregister old channels.",
-        "  CSUSPEND    Remove $C from a channel (preserving user data).",
-        "  CUNSUSPEND  Restore $C to a channel that was suspended.",
-        "  UNVISITED   List all channels that have not been visited in specified duration.",
-       "  MERGE       Merges a source and target channels' registration, users, bans, and other data into the target channel.",
-        "  MOVE        Transition one channel's registration to a new channel name.",
-        "  OPCHAN      Force $C to op itself in a channel.",
-        "  REGISTER    Register a new channel with $C.",
-        "  NOREGISTER  Add a channel to the do-not-register list.",
-        "  ALLOWREGISTER Remove a channel from the do-not-register list.",
-        "  UNREGISTER  Remove $C from a registered channel.",
-        "  SEARCH      Find registered channel matching criteria.",
-        "  ADDOWNER    Add a new owner to a channel.",
-        "  DELOWNER    Remove a current owner from a channel.",
-        "  MDELOWNER   Remove multiple owners by account mask from a channel.",
-        "  CREATENOTE  Create a new note type.",
-        "  REMOVENOTE  Remove an existing note type."
+
+"GENERAL"  ("=--------------------------------------=",
+            " $C uses a standard interface for each  ",
+            " command in its command list. Commands  ",
+            " can be issued either in /MSG format or ",
+            " in a channel which $C is in. These two ",
+            " ways are demonstrated below:",
+            "  $b/MSG $C OP #chatzone Locke$b",
+            "  $b.OP #chatzone locke$b",
+            "$b$b",
+            " If a command is given in a channel, and ",
+            " the channel parameter is not given, the ",
+            " channel that the command was issued in  ",
+            " will be used:",
+            " $b.OP locke$b",
+            "$b$b",
+            " Some commands, such as $bNETSTATS$b     ",
+            " don't require a channel. If one is      ",
+            " supplied it will be ignored.",
+            "$b$b",
+            " There are a couple of commands that you ",
+            " MUST do in /MSG format, for security    ",
+            " reasons. such as $bAUTH$b (since the    ",
+            " parameter is your password).            ",
+            " If a command takes additional parameters",
+            " asside from channel, they will be       ",
+            " expected as well.                       ",
+            " See $b/msg $C HELP <COMMAND>$b for the  ",
+            " exact syntax of each command.           ",
+            "=---------- For more info see ----------=",
+            "     http://www.afternet.org/support     ",
+            "=---------------------------------------="
 );
+
 "MYACCESS" ("/msg $S MYACCESS [<nick|*account>]",
         "Lists channels where you have access and infolines in each.",
         "Network staff may specify a nickname or *account to view the list for another user.",
         "$uSee Also:$u bans, delban, mdelban");
 "ADDUSER" ("/msg $C ADDUSER <#channel> <nick|*account> <level>",
         "This command adds someone to the channel user list with the specified access level.  (You may only add users to levels less than your own.)",
-        "The level may be one of $bpeon$b, $bop$b, $bmaster$b, $bcoowner$b, $bowner$b, or a number between 1 and 500.  Only network staff may add level 500 users (owners).",
+        "The level may be one of $bpeon$b, $bop$b, $bmanager$b, $bcoowner$b, $bowner$b, or a number between 1 and 500.  Only network staff may add level 500 users (owners).",
         "$uSee Also:$u deluser, users");
+"ADDOP" ("/msg $C ADDOP <#channel> <nick|*account>",
+        "This command adds someone to the channel user list with OP access level. (You may only add users to levels less than your own.)",
+        "$uSee Also:$u adduser, deluser, users");
 "ADDTIMEDBAN" ("/msg $C ADDTIMEDBAN <#channel> <mask|nick> <Duration> [Reason]",
         "Adds an automatically expiring ban to the channel ban list. This command behaves in the exact same fashion as ADDBAN with the exception that the bans are automatically removed after the user-supplied duration. If it exactly matches an existing ban already in the list, the reason will be updated. If the existing ban was a timed ban, it will be extended. Timed bans can be removed with the DELBAN command, as with permanent bans.",
         "$uSee Also:$u addban, bans, delban, durations");
 "INFO" ("/msg $C INFO <#channel>",
         "This command responds with various pieces of information about a channel's users, status, and registration.");
 "INVITE" ("/msg $C INVITE <#channel> [nick [reason]]",
-        "Invites a user into the channel, sending them a reason if one is provided. However, unless you have at least $bmaster$b access, you can only invite yourself with this command. If no nick is provided, the user issuing the command will be invited.");
+        "Invites a user into the channel, sending them a reason if one is provided. However, unless you have at least $bmanager$b access, you can only invite yourself with this command. If no nick is provided, the user issuing the command will be invited.");
 "INVITEME" ("/msg $S INVITEME <#channel>",
         "Invites you into the channel.");
 "IRCOPS" ("/msg $C IRCOPS",
 "MDELCOOWNER" ("/msg $C MDELCOOWNER <#channel> <pattern>",
         "Deletes all coowners with accounts matching the given pattern from the channel user list.",
         "$uSee Also:$u clist, delcoowner");
-"MDELMASTER" ("/msg $C MDELMASTER <#channel> <pattern>",
-        "Deletes all masters with accounts matching the given pattern from the channel user list.",
+"MDELMANAGER" ("/msg $C MDELMANAGER <#channel> <pattern>",
+        "Deletes all managers with accounts matching the given pattern from the channel user list.",
         "$uSee Also:$u mdelban, mdelcoowner, mdelop, mdelowner, mdelpeon");
 "MDELOP" ("/msg $C MDELOP <#channel> <pattern>",
         "Deletes all ops with accounts matching the given pattern from the channel user list.");
 "MDELOWNER" ("/msg $C MDELOWNER <#channel> <pattern>",
         "Deletes all owners with accounts matching the given pattern from the channel user list.",
-        "$uSee Also:$u addowner, mdelcoowner, mdelmaster, mdelop, mdelpeon");
+        "$uSee Also:$u addowner, mdelcoowner, mdelmanager, mdelop, mdelpeon");
 "MDELPEON" ("/msg $C MDELPEON <#channel> <pattern>",
         "Deletes all peons with accounts matching the given pattern from the channel user list.",
-        "$uSee Also:$u addpeon, mdelcoowner, mdelmaster, mdelop");
+        "$uSee Also:$u addpeon, mdelcoowner, mdelmanager, mdelop");
 "MERGE" ("/msg $C MERGE <#channel> <destination>",
         "Merges the source channel's registration, users, bans, and other data into the target channel. Users with access to both the source and target channels will retain the higher access level; if the access levels are the same, the more recent seen time is kept. Bans are also merged, with bans expiring later taking precedence.",
         "$uSee Also:$u register, move, unregister");
 "MLIST" ("/msg $C MLIST <#channel> [mask]",
-        "This command lists all users of level $bMaster$b on a channel's userlist. If a mask is supplied, only masters matching the mask will be shown.",
-        "$uSee Also:$u addmaster, delmaster, mdelmaster, users");
+        "This command lists all users of level $bManager$b on a channel's userlist. If a mask is supplied, only managers matching the mask will be shown.",
+        "$uSee Also:$u addmanager, delmanager, mdelmanager, users");
 "MODE" ("/msg $C MODE <#channel>",
         "Resets the modes in the channel to their default.",
         "$uSee Also:$u open, set");
         "This command lists all users of level $bOwner$b on a channel's userlist. If a mask is supplied, only owners matching the mask will be shown.",
         "$uSee Also:$u addcoowner, delcoowner, mdelcoowner, users");
 
-"I'VE FALLEN AND I CAN'T GET UP" ("$bHelp, I've fallen and I can't get up$b!",
-        "If you drank your milk, you might not feel so vulnerable right now.",
-        "So next time you're sitting in front of a tall frosty glass of milk, just think how much it will help build up your bone structure.");
-"ME"   "Help you? You're beyond help.";
-"Zoot" "Crash it again, please?";
-"Entrope" "C Code.  C Code Run.  Run, Code, Run!!    (please?)";
-"emacs" ("A novice of the temple once approached the Chief Priest with a question.",
-        "The novice asked, \"Master, does Emacs have the Buddha nature?\"",
-        "The Chief Priest had been in the temple for many years and could be relied upon to know these things.  He thought for several minutes before replying.",
-        "\"I don't see why not.  It's got bloody well everything else.\"",
-        "With that, the Chief Priest went to lunch.  The novice suddenly achieved enlightenment, several years later.");
-"thanks" ("The srvx developers would like to thank the following people for their help in making srvx as polished as it is today:",
-        "$bGameSurge IRC Network$b - All the users and staff there bear with our shortcomings and bugs and let us know what needs to be fixed.",
-        "$bIC5 Networks$b (and JohnM in particular) - Never afraid to critique things, even if we are the 800 pound gorilla.",
-        "$bMeeko, eraser, hock(ey), KilledInAction, MadEwokHerd, Milon and Shoat$b - Hardcore beta testing and bug finding on the testnet.",
-        "$bCrips and feigling$b - Reading through all the boring messages and finding ways to make them clearer.");
+"ME"   "I am at your service. /msg $C help command, or /join #help ";
+"thanks" ("AfterNET's own srvx2 is based on the hard work of the origional srvx developers.  They would like to thank the following people for their help in making the origional srvx:",
+        "     $bGameSurge IRC Network$b - All the users and staff there bear with our shortcomings and bugs and let us know what needs to be fixed.",
+        "     $bIC5 Networks$b (and JohnM in particular) - Never afraid to critique things, even if we are the 800 pound gorilla.",
+        "     $bMeeko, eraser, hock(ey), KilledInAction, MadEwokHerd, Milon and Shoat$b - Hardcore beta testing and bug finding on the testnet.",
+        "     $bCrips and feigling$b - Reading through all the boring messages and finding ways to make them clearer.",
+        "Futher, the AfterNET srvx2 team would like to thank:",
+        "     $breed$b - who tirelessly nagged us to upgrade our services",
+        "$bAfterNET Users and Opers$b - who faught both for and against the change, for the better of Afternet.");
index b4a736e22ceec9634145bc19043ad77c269e1000..bc0d365a397868072b2f0fc005207873c1d5d2f7 100644 (file)
@@ -55,6 +55,7 @@ static const struct message_entry msgtab[] = {
     { "MCMSG_NO_CHANNEL_BEFORE", "You may not give a channel name before this command." },
     { "MCMSG_NO_PLUS_CHANNEL", "You may not use a +channel with this command." },
     { "MCMSG_COMMAND_ALIASES", "%s is an alias for: %s" },
+    { "MCMSG_HELP_COMMAND_ALIAS", "$uAlias for:$u %s" },
     { "MCMSG_COMMAND_BINDING", "%s is a binding of: %s" },
     { "MCMSG_ALIAS_ERROR", "Error in alias expansion for %s; check the error log for details." },
     { "MCMSG_INTERNAL_COMMAND", "$b%s$b is an internal command and cannot be called directly; please check command bindings." },
@@ -757,19 +758,28 @@ int
 svccmd_send_help(struct userNode *user, struct userNode *bot, struct svccmd *cmd) {
     char cmdname[MAXLEN];
     unsigned int nn;
+    int r;
     /* Show command name (in bold). */
     for (nn=0; cmd->name[nn]; nn++)
         cmdname[nn] = toupper(cmd->name[nn]);
     cmdname[nn] = 0;
-    send_message_type(4, user, bot, "$b%s$b", cmdname);
+    send_message_type(4, user, bot, "=--- $b%s$b ---=", cmdname);
+
+    /* Show the help entry for the underlying command. */
+        /* Lets not show help for a parent command, thats not what
+         * they asked for!
+         * return send_help(user, bot, cmd->command->parent->helpfile, cmd->command->name);
+         * TODO: We actually DO want to show the parent IF there is no other help.
+         */
+    r = send_help(user, bot, cmd->command->parent->helpfile, cmd->name);
+
     /* If it's an alias, show what it's an alias for. */
     if (cmd->alias.used) {
         char alias_text[MAXLEN];
         unsplit_string((char**)cmd->alias.list, cmd->alias.used, alias_text);
-        send_message(user, bot, "MCMSG_COMMAND_ALIASES", cmd->name, alias_text);
+        send_message(user, bot, "MCMSG_HELP_COMMAND_ALIAS", alias_text);
     }
-    /* Show the help entry for the underlying command. */
-    return send_help(user, bot, cmd->command->parent->helpfile, cmd->command->name);
+    return r;
 }
 
 int
@@ -778,10 +788,14 @@ svccmd_send_help_2(struct userNode *user, struct service *service, const char *t
     struct svccmd *cmd;
     unsigned int ii;
 
+    /* If there is a command, send help for the command */
     if ((cmd = dict_find(service->commands, topic, NULL)))
         return svccmd_send_help(user, service->bot, cmd);
+
+    /* If there is no topic show the index */
     if (!topic)
         topic = "<index>";
+    /* look for the thing in the included help files */
     for (ii = 0; ii < service->modules.used; ++ii) {
         module = service->modules.list[ii];
         if (!module->helpfile)
@@ -789,6 +803,7 @@ svccmd_send_help_2(struct userNode *user, struct service *service, const char *t
         if (dict_find(module->helpfile->db, topic, NULL))
             return send_help(user, service->bot, module->helpfile, topic);
     }
+    /* Otherwise say we cant find it */
     send_message(user, service->bot, "MSG_TOPIC_UNKNOWN");
     return 0;
 }
@@ -2308,12 +2323,12 @@ create_default_binds(void) {
         if (!irccasecmp(def_binds[ii].svcname, "ChanServ")) {
             service_make_alias(service, "addowner", "*chanserv.adduser", "$1", "owner", NULL);
             service_make_alias(service, "addcoowner", "*chanserv.adduser", "$1", "coowner", NULL);
-            service_make_alias(service, "addmaster", "*chanserv.adduser", "$1", "master", NULL);
+            service_make_alias(service, "addmanager", "*chanserv.adduser", "$1", "manager", NULL);
             service_make_alias(service, "addop", "*chanserv.adduser", "$1", "op", NULL);
             service_make_alias(service, "addpeon", "*chanserv.adduser", "$1", "peon", NULL);
             service_make_alias(service, "delowner", "*chanserv.deluser", "owner", "$1", NULL);
             service_make_alias(service, "delcoowner", "*chanserv.deluser", "coowner", "$1", NULL);
-            service_make_alias(service, "delmaster", "*chanserv.deluser", "master", "$1", NULL);
+            service_make_alias(service, "delmanager", "*chanserv.deluser", "manager", "$1", NULL);
             service_make_alias(service, "delop", "*chanserv.deluser", "op", "$1", NULL);
             service_make_alias(service, "delpeon", "*chanserv.deluser", "peon", "$1", NULL);
             service_make_alias(service, "command", "*modcmd.command", NULL);
index 4d7b374d8c9b8c178023dde6d2a2d4a301e47ea9..f8dc142053a717bc26e7981be02d44ac315211c9 100644 (file)
@@ -3749,17 +3749,21 @@ init_nickserv(const char *nick)
     dict_set_free_data(nickserv_email_dict, nickserv_free_email_addr);
 
     nickserv_module = module_register("NickServ", NS_LOG, "nickserv.help", NULL);
-    modcmd_register(nickserv_module, "AUTH", cmd_auth, 2, MODCMD_KEEP_BOUND, "flags", "+qualified,+loghostmask", NULL);
+/* Removed qualified_host as default requirement for AUTH, REGISTER, PASS, etc. nets 
+ * can enable it per command  using modcmd. (its a shitty default IMO, and now in 1.3 
+ * a big pain to disable  since its nolonger in the config file. )   -Rubin
+ */
+    modcmd_register(nickserv_module, "AUTH", cmd_auth, 2, MODCMD_KEEP_BOUND, "flags", "+loghostmask", NULL);
     nickserv_define_func("ALLOWAUTH", cmd_allowauth, 0, 1, 0);
-    nickserv_define_func("REGISTER", cmd_register, -1, 0, 1);
+    nickserv_define_func("REGISTER", cmd_register, -1, 0, 0);
     nickserv_define_func("OREGISTER", cmd_oregister, 0, 1, 0);
-    nickserv_define_func("UNREGISTER", cmd_unregister, -1, 1, 1);
+    nickserv_define_func("UNREGISTER", cmd_unregister, -1, 1, 0);
     nickserv_define_func("OUNREGISTER", cmd_ounregister, 0, 1, 0);
     nickserv_define_func("ADDMASK", cmd_addmask, -1, 1, 0);
     nickserv_define_func("OADDMASK", cmd_oaddmask, 0, 1, 0);
     nickserv_define_func("DELMASK", cmd_delmask, -1, 1, 0);
     nickserv_define_func("ODELMASK", cmd_odelmask, 0, 1, 0);
-    nickserv_define_func("PASS", cmd_pass, -1, 1, 1);
+    nickserv_define_func("PASS", cmd_pass, -1, 1, 0);
     nickserv_define_func("SET", cmd_set, -1, 1, 0);
     nickserv_define_func("OSET", cmd_oset, 0, 1, 0);
     nickserv_define_func("ACCOUNTINFO", cmd_handleinfo, -1, 0, 0);
@@ -3778,8 +3782,8 @@ init_nickserv(const char *nick)
     }
     if (nickserv_conf.email_enabled) {
         nickserv_define_func("AUTHCOOKIE", cmd_authcookie, -1, 0, 0);
-        nickserv_define_func("RESETPASS", cmd_resetpass, -1, 0, 1);
-        nickserv_define_func("COOKIE", cmd_cookie, -1, 0, 1);
+        nickserv_define_func("RESETPASS", cmd_resetpass, -1, 0, 0);
+        nickserv_define_func("COOKIE", cmd_cookie, -1, 0, 0);
         nickserv_define_func("DELCOOKIE", cmd_delcookie, -1, 1, 0);
         dict_insert(nickserv_opt_dict, "EMAIL", opt_email);
     }
diff --git a/srvx b/srvx
index d8f7a5c51d4c5c93523f39273ea7f71c22ac3b7f..21ae7b822bca97758207e361906bc76d33705570 100644 (file)
Binary files a/srvx and b/srvx differ