]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/global.c
Changed PEON to PAL as some people found it insulting.
[irc/evilnet/x3.git] / src / global.c
index 63702a658a55460788ea8e81f7d0657e9d251d73..ee30cd32ef0886210a4a94a2405998177571f81e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -81,6 +81,8 @@ static const struct message_entry msgtab[] = {
     { "HSMSG_BOT_REGISTERED", "HelpServ %s (%s) registered to %s by %s." },
     { "HSMSG_BOT_EXPIRED", "HelpServ %s (%s) expired at request of %s." },
     { "HSMSG_BOT_UNREGISTERED", "HelpServ %s (%s) unregistered by %s." },
+    { "HSMSG_SUSPENDED_BY", "%s suspended by %s. (HelpServ)" },
+    { "HSMSG_UNSUSPENDED_BY", "%s unsuspended by %s. (HelpServ)" },
 
     /* nickserv.c */
     { "NSMSG_ACCOUNT_RENAMED", "%s renamed account %s to %s." },
@@ -403,7 +405,7 @@ message_send(struct globalMessage *message)
 void
 global_message_args(long targets, const char *language_entry, ...)
 {
-    struct globalMessage *message;
+    struct globalMessage *message = NULL;
     va_list arg_list;
     dict_iterator_t it;
     char response[MAXLEN];
@@ -424,6 +426,9 @@ global_message_args(long targets, const char *language_entry, ...)
         vsnprintf(response, MAXLEN-2, language_entry, arg_list);
         response[MAXLEN-1] = 0;
 
+        if (message)
+            message_del(message);
+
         message = message_add(targets | MESSAGE_OPTION_SOURCELESS, now, 0, "", response);
         if (!message)
            continue;