]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/global.h
Added an error check to help trace users figure out mistakes with mark vs marked
[irc/evilnet/x3.git] / src / global.h
index df3ed64b7f95a3966e4af2f816c5d27594bc5362..95fc4f93c7c6310bd9a88a2556d8889f75a15fcb 100644 (file)
@@ -1,11 +1,11 @@
 /* global.h - Global notice service
  * Copyright 2000-2004 srvx Development Team
  *
- * This file is part of srvx.
+ * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * 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,
@@ -26,6 +26,8 @@
 #define MESSAGE_RECIPIENT_OPERS                        0x004
 #define MESSAGE_RECIPIENT_CHANNELS                     0x008
 #define MESSAGE_RECIPIENT_ANNOUNCE                     0x040
+#define MESSAGE_RECIPIENT_AUTHED                0x080
+#define MESSAGE_RECIPIENT_RCHANNELS                    0x100
 
 #define MESSAGE_OPTION_SOURCELESS              0x010
 #define MESSAGE_OPTION_IMMEDIATE               0x020
 #define MESSAGE_RECIPIENT_STAFF                        (MESSAGE_RECIPIENT_HELPERS | MESSAGE_RECIPIENT_OPERS)
 #define MESSAGE_RECIPIENT_ALL                  (MESSAGE_RECIPIENT_LUSERS | MESSAGE_RECIPIENT_CHANNELS)
 
-struct globalMessage
-{
-    unsigned long                              id;
-    long                               flags;
-
-    time_t                             posted;
-    unsigned long                      duration;
-
-    char                               *from;
-    char                               *message;
-
-    struct globalMessage               *prev;
-    struct globalMessage               *next;
-};
-
 void init_global(const char *nick);
 
 void global_message(long targets, char *text);
+void global_message_args(long targets, const char *language_entry, ...);
 
 #endif