I18n'ize the staff descriptors in !access.
authorMichael Poole <mdpoole@troilus.org>
Tue, 3 Oct 2006 23:18:25 +0000 (23:18 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 3 Oct 2006 23:18:25 +0000 (23:18 +0000)
src/chanserv.c (msgtab): Add new entries for staff descriptors.
  (cmd_access): Use them.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-50

ChangeLog
src/chanserv.c

index 47d99ffd517059f86fcd427625c5a915879e46d7..29773f535bb2159fc2214388472434e73192910a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
 #
 
+2006-10-03 23:18:25 GMT        Michael Poole <mdpoole@troilus.org>     patch-50
+
+    Summary:
+      I18n'ize the staff descriptors in !access.
+    Revision:
+      srvx--devo--1.3--patch-50
+
+    src/chanserv.c (msgtab): Add new entries for staff descriptors.
+      (cmd_access): Use them.
+
+    modified files:
+     ChangeLog src/chanserv.c
+
+
 2006-09-23 01:14:35 GMT        Michael Poole <mdpoole@troilus.org>     patch-49
 
     Summary:
index 458e75f232b15d95e911377aed6483fa7e22b297..d2ab69a57326699069df42426fdfeac0d890aaf0 100644 (file)
@@ -355,6 +355,9 @@ static const struct message_entry msgtab[] = {
     { "CSMSG_HELPER_HAS_ACCESS", "%s has access $b%d$b in %s and has $bsecurity override$b enabled." },
     { "CSMSG_LAZY_SMURF_TARGET", "%s is %s ($bIRCOp$b; not logged in)." },
     { "CSMSG_SMURF_TARGET", "%s is %s ($b%s$b)." },
+    { "CSMSG_OPERATOR_TITLE", "IRC operator" },
+    { "CSMSG_UC_H_TITLE", "network helper" },
+    { "CSMSG_LC_H_TITLE", "support helper" },
     { "CSMSG_LAME_SMURF_TARGET", "%s is an IRC operator." },
 
 /* Seen information */
@@ -3339,17 +3342,17 @@ static CHANSERV_FUNC(cmd_access)
         if(IsOper(target))
         {
             epithet = chanserv_conf.irc_operator_epithet;
-            type = "IRCOp";
+            type = user_find_message(user, "CSMSG_OPERATOR_TITLE");
         }
         else if(IsNetworkHelper(target))
         {
             epithet = chanserv_conf.network_helper_epithet;
-            type = "network helper";
+            type = user_find_message(user, "CSMSG_UC_H_TITLE");
         }
         else if(IsSupportHelper(target))
         {
             epithet = chanserv_conf.support_helper_epithet;
-            type = "support helper";
+            type = user_find_message(user, "CSMSG_LC_H_TITLE");
         }
         if(epithet)
         {