Fix en_GB language name, fix NickServ mergedb command.
authorMichael Poole <mdpoole@troilus.org>
Sun, 1 May 2005 17:16:58 +0000 (17:16 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 1 May 2005 17:16:58 +0000 (17:16 +0000)
FAQ: Clarify FAQ #8.

src/nickserv.c: Avoid losing channel information when replacing an
account using the mergedb command.

languages/en_UK: Rename to en_GB.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-20

ChangeLog
FAQ
languages/en_GB/README [new file with mode: 0644]
languages/en_GB/chanserv.help [new file with mode: 0644]
languages/en_GB/opserv.help [new file with mode: 0644]
languages/en_GB/strings.db [new file with mode: 0644]
languages/en_UK/README [deleted file]
languages/en_UK/chanserv.help [deleted file]
languages/en_UK/opserv.help [deleted file]
languages/en_UK/strings.db [deleted file]
src/nickserv.c

index 570c42a5d6a196be3872cdf244ba70fa25ff8f8e..6b32bfd5b2eacd925b036578cbae14977eb1af4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,46 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2005-srvx/srvx--devo--1.3
 #
 
+2005-05-01 17:16:58 GMT        Michael Poole <mdpoole@troilus.org>     patch-20
+
+    Summary:
+      Fix en_GB language name, fix NickServ mergedb command.
+    Revision:
+      srvx--devo--1.3--patch-20
+
+    FAQ: Clarify FAQ #8.
+    
+    src/nickserv.c: Avoid losing channel information when replacing an
+    account using the mergedb command.
+    
+    languages/en_UK: Rename to en_GB.
+
+    modified files:
+     ChangeLog FAQ src/nickserv.c
+
+    renamed files:
+     languages/en_UK/.arch-ids/=id
+       ==> languages/en_GB/.arch-ids/=id
+     languages/en_UK/.arch-ids/README.id
+       ==> languages/en_GB/.arch-ids/README.id
+     languages/en_UK/.arch-ids/chanserv.help.id
+       ==> languages/en_GB/.arch-ids/chanserv.help.id
+     languages/en_UK/.arch-ids/opserv.help.id
+       ==> languages/en_GB/.arch-ids/opserv.help.id
+     languages/en_UK/.arch-ids/strings.db.id
+       ==> languages/en_GB/.arch-ids/strings.db.id
+
+    new directories:
+     languages/en_GB/.arch-ids
+
+    removed directories:
+     languages/en_UK/.arch-ids
+
+    renamed directories:
+     languages/en_UK
+       ==> languages/en_GB
+
+
 2005-03-15 23:12:58 GMT        Michael Poole <mdpoole@troilus.org>     patch-19
 
     Summary:
diff --git a/FAQ b/FAQ
index 1041fc79638d7db3bfff76604a9150d5ece7d56a..bd55116f447c30d19903c25fff98ee05eece59ff 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -52,8 +52,9 @@ module; for example, "./configure --enable-modules=memoserv".  Then
 see the comment near the start of src/mod-memoserv.c for configuration
 options.
 
-Q8) How do I enable both HelpServ and MemoServ?  In addition to the
-configuration steps above, you must mention both when you run the
-configure script.  For example, run it using "./configure
---enable-modules=memoserv,helpserv".  (You may add the snoop and/or
-sockcheck modules as well; separate the module names with commas.)
+Q8) How do I enable both HelpServ and MemoServ?
+A8) In addition to the post-install configuration steps above, you
+must mention both when you run the configure script.  For example, run
+it using "./configure --enable-modules=memoserv,helpserv".  (You may
+add the snoop and/or sockcheck modules as well; separate the module
+names with commas.)
diff --git a/languages/en_GB/README b/languages/en_GB/README
new file mode 100644 (file)
index 0000000..faca818
--- /dev/null
@@ -0,0 +1 @@
+This translation was written by Simon 'Byte' Arlott.
diff --git a/languages/en_GB/chanserv.help b/languages/en_GB/chanserv.help
new file mode 100644 (file)
index 0000000..fa83170
--- /dev/null
@@ -0,0 +1,27 @@
+"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      Synchronise ops and voice with the channel userlist."
+);
+"RESYNC" ("/msg $S RESYNC <#channel>",
+        "Synchronises users in the channel with the userlist.  This means that if the user can normally get ops, $S makes sure the user has ops.  Otherwise, if the user normally gets voice, $S makes sure the user has voice but not ops.  Otherwise, $S makes sure the user has neither voice nor ops.");
+"SET DEFAULTTOPIC" ("/msg $C SET <#channel> DEFAULTTOPIC <New default topic>",
+        "This changes the default topic for the channel.  $C will set the IRC topic to this value when the $btopic$b command is used with no arguments, when the topic refresh happens (if you have $bset topicrefresh$b), or when an unauthorised user changes the topic to something else.",
+        "$uSee Also:$u set, set topicrefresh, set enftopic, set topicmask");
+"SET ENFOPS" ("/msg $C SET <#channel> ENFOPS <value>",
+        "This setting restricts who may op users who are not at least ops on the userlist.  If $C sees someone with access below the specified access op someone not on the userlist (or who is a peon), it will deop the second user.  It is a numeric user level, or 501 to mean no one may op unrecognised users.",
+        "$uSee Also:$u set");
+"Byte" "<mike[F]> I just worked out Byte's role in the srvx team <mike[F]> It's his job to break srvx <mike[F]> Nothing else";
diff --git a/languages/en_GB/opserv.help b/languages/en_GB/opserv.help
new file mode 100644 (file)
index 0000000..eac0080
--- /dev/null
@@ -0,0 +1,14 @@
+"<INDEX>" ("$b$O Help$b",
+        "$b$O$b is the IRC operator service, giving authorised users extra information and control over the network.",
+        "$uNetwork-related command categories:$u",
+        "  USER     - User information, control and searching",
+        "  CHANNEL  - Channel information and control",
+        "  GLINES   - G-line control and searching",
+        "$usrvx-internal command categories:$u",
+        "  CLONES   - Control for fake servers and users",
+        "  LOGS     - Log control and searching",
+        "  PROXY    - Proxy checking controls",
+        "  RUNNING  - Control srvx's run-time state",
+        "  SERVICES - Control of the other services in srvx",
+        "  OTHER    - Miscellaneous commands",
+        "$b/msg $O help <category>$b for a list of commands in each category, or $b/msg $O help <command>$b for syntax and usage for a command.");
diff --git a/languages/en_GB/strings.db b/languages/en_GB/strings.db
new file mode 100644 (file)
index 0000000..dd97903
--- /dev/null
@@ -0,0 +1,7 @@
+"CSMSG_RESYNCED_USERS" "Synchronised users in $b%s$b with the userlist.";
+"CSMSG_ACTION_INVALID" "$b%s$b is not a recognised search action.";
+"OSMSG_BAD_ACTION" "Unrecognised trace action $b%s$b.";
+"OSMSG_GSYNC_RUNNING" "Synchronising glines from %s.";
+"NSMSG_REGISTER_BAD_NICKMASK" "Could not recognise $b%s$b as either a current nick or a hostmask.";
+"NSMSG_AUTH_SUCCESS" "I recognise you.";
+"NSEMAIL_ALLOWAUTH_BODY" "This email has been sent to let you authenticate (auth) to account %5$s on %1$s.  Your cookie is %2$s.\nTo auth to that account, log on to %1$s and type the following command:\n    /msg %3$s@%4$s COOKIE %5$s %2$s\nIf you did NOT request this authorisation, you do not need to do anything.  Please contact the %1$s staff if you have questions.";
diff --git a/languages/en_UK/README b/languages/en_UK/README
deleted file mode 100644 (file)
index faca818..0000000
+++ /dev/null
@@ -1 +0,0 @@
-This translation was written by Simon 'Byte' Arlott.
diff --git a/languages/en_UK/chanserv.help b/languages/en_UK/chanserv.help
deleted file mode 100644 (file)
index fa83170..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-"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      Synchronise ops and voice with the channel userlist."
-);
-"RESYNC" ("/msg $S RESYNC <#channel>",
-        "Synchronises users in the channel with the userlist.  This means that if the user can normally get ops, $S makes sure the user has ops.  Otherwise, if the user normally gets voice, $S makes sure the user has voice but not ops.  Otherwise, $S makes sure the user has neither voice nor ops.");
-"SET DEFAULTTOPIC" ("/msg $C SET <#channel> DEFAULTTOPIC <New default topic>",
-        "This changes the default topic for the channel.  $C will set the IRC topic to this value when the $btopic$b command is used with no arguments, when the topic refresh happens (if you have $bset topicrefresh$b), or when an unauthorised user changes the topic to something else.",
-        "$uSee Also:$u set, set topicrefresh, set enftopic, set topicmask");
-"SET ENFOPS" ("/msg $C SET <#channel> ENFOPS <value>",
-        "This setting restricts who may op users who are not at least ops on the userlist.  If $C sees someone with access below the specified access op someone not on the userlist (or who is a peon), it will deop the second user.  It is a numeric user level, or 501 to mean no one may op unrecognised users.",
-        "$uSee Also:$u set");
-"Byte" "<mike[F]> I just worked out Byte's role in the srvx team <mike[F]> It's his job to break srvx <mike[F]> Nothing else";
diff --git a/languages/en_UK/opserv.help b/languages/en_UK/opserv.help
deleted file mode 100644 (file)
index eac0080..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-"<INDEX>" ("$b$O Help$b",
-        "$b$O$b is the IRC operator service, giving authorised users extra information and control over the network.",
-        "$uNetwork-related command categories:$u",
-        "  USER     - User information, control and searching",
-        "  CHANNEL  - Channel information and control",
-        "  GLINES   - G-line control and searching",
-        "$usrvx-internal command categories:$u",
-        "  CLONES   - Control for fake servers and users",
-        "  LOGS     - Log control and searching",
-        "  PROXY    - Proxy checking controls",
-        "  RUNNING  - Control srvx's run-time state",
-        "  SERVICES - Control of the other services in srvx",
-        "  OTHER    - Miscellaneous commands",
-        "$b/msg $O help <category>$b for a list of commands in each category, or $b/msg $O help <command>$b for syntax and usage for a command.");
diff --git a/languages/en_UK/strings.db b/languages/en_UK/strings.db
deleted file mode 100644 (file)
index dd97903..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-"CSMSG_RESYNCED_USERS" "Synchronised users in $b%s$b with the userlist.";
-"CSMSG_ACTION_INVALID" "$b%s$b is not a recognised search action.";
-"OSMSG_BAD_ACTION" "Unrecognised trace action $b%s$b.";
-"OSMSG_GSYNC_RUNNING" "Synchronising glines from %s.";
-"NSMSG_REGISTER_BAD_NICKMASK" "Could not recognise $b%s$b as either a current nick or a hostmask.";
-"NSMSG_AUTH_SUCCESS" "I recognise you.";
-"NSEMAIL_ALLOWAUTH_BODY" "This email has been sent to let you authenticate (auth) to account %5$s on %1$s.  Your cookie is %2$s.\nTo auth to that account, log on to %1$s and type the following command:\n    /msg %3$s@%4$s COOKIE %5$s %2$s\nIf you did NOT request this authorisation, you do not need to do anything.  Please contact the %1$s staff if you have questions.";
index 0ea763633b7adb2477fac915a983b8470355bf07..0a05aaf736670abf1642385b7381b5848bc9d253 100644 (file)
@@ -3215,6 +3215,7 @@ nickserv_db_read_handle(const char *handle, dict_t obj)
     struct string_list *masks, *slist;
     struct handle_info *hi;
     struct userNode *authed_users;
+    struct userData *channels;
     unsigned long int id;
     unsigned int ii;
     dict_t subdb;
@@ -3228,10 +3229,13 @@ nickserv_db_read_handle(const char *handle, dict_t obj)
     }
     if ((hi = get_handle_info(handle))) {
         authed_users = hi->users;
+        channels = hi->channels;
         hi->users = NULL;
+        hi->channels = NULL;
         dict_remove(nickserv_handle_dict, hi->handle);
     } else {
         authed_users = NULL;
+        channels = NULL;
     }
     hi = register_handle(handle, str, id);
     if (authed_users) {
@@ -3241,6 +3245,7 @@ nickserv_db_read_handle(const char *handle, dict_t obj)
             authed_users = authed_users->next_authed;
         }
     }
+    hi->channels = channels;
     masks = database_get_data(obj, KEY_MASKS, RECDB_STRING_LIST);
     hi->masks = masks ? string_list_copy(masks) : alloc_string_list(1);
     str = database_get_data(obj, KEY_MAXLOGINS, RECDB_QSTRING);