diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-04 18:15:51 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-04 18:15:51 +0000 |
commit | 3e37906cf71ce93ee7faa4a6b9469abbd6811196 (patch) | |
tree | 97ee82766d4f7c3879b4d1f12cea8e154ac966f8 /src/irc/bot/bot-users.h | |
parent | df0536c6035279f7fe9b37bb6658275d65e19239 (diff) | |
download | irssi-3e37906cf71ce93ee7faa4a6b9469abbd6811196.zip |
Remove long unmaintained botnet module.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4723 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/bot/bot-users.h')
-rw-r--r-- | src/irc/bot/bot-users.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/irc/bot/bot-users.h b/src/irc/bot/bot-users.h deleted file mode 100644 index 8023e9a6..00000000 --- a/src/irc/bot/bot-users.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __BOT_USERS_H -#define __BOT_USERS_H - -#define USER_OP 0x0001 -#define USER_AUTO_OP 0x0002 -#define USER_AUTO_VOICE 0x0004 -#define USER_MASTER 0x0008 - -#define USER_FLAG_COUNT 4 - -/* Channel specific flags */ -typedef struct { - char *channel; - int flags; - NICK_REC *nickrec; /* Nick record in channel, - FIXME: User can be in channel with multiple nicks too! */ -} USER_CHAN_REC; - -typedef struct { - char *mask; - int not_flags; /* do not let this mask use these flags.. */ -} USER_MASK_REC; - -/* User specific flags */ -typedef struct { - char *nick; - int flags; - char *password; - - GSList *masks; - GHashTable *channels; - - int not_flags; /* active not_flags based on current host mask, - botuser_find() updates this */ - time_t last_modify; /* last time the user settings were modified */ -} USER_REC; - -int botuser_flags2value(const char *flags); -char *botuser_value2flags(int value); - -USER_REC *botuser_find(const char *nick, const char *host); -USER_REC *botuser_find_rec(CHANNEL_REC *channel, NICK_REC *nick); - -USER_REC *botuser_add(const char *nick); -void botuser_set_flags(USER_REC *user, int flags); -void botuser_set_channel_flags(USER_REC *user, const char *channel, int flags); - -USER_MASK_REC *botuser_add_mask(USER_REC *user, const char *mask); -void botuser_set_mask_notflags(USER_REC *user, const char *mask, int not_flags); - -void botuser_set_password(USER_REC *user, const char *password); -int botuser_verify_password(USER_REC *user, const char *password); - -void botuser_save(const char *fname); - -#endif |