X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/83ff05c356f6497be2475640d1cb2e3eb369831f..14897e8cd6d19497ca9208cf3ce68e25675d5ee7:/src/global.h diff --git a/src/global.h b/src/global.h index 3078a91..95fc4f9 100644 --- a/src/global.h +++ b/src/global.h @@ -3,9 +3,9 @@ * * 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 @@ -33,23 +35,9 @@ #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