diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bots.h | 12 | ||||
-rw-r--r-- | include/extern.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/bots.h b/include/bots.h index 50fb844e2..6573903be 100644 --- a/include/bots.h +++ b/include/bots.h @@ -44,5 +44,17 @@ class BotInfo * Used on /kill, rename, etc. */ void RejoinAll(); + + /** Assign this bot to a given channel, removing the existing assigned bot if one exists. + * @param u The user assigning the bot, or NULL + * @param ci The channel registration to assign the bot to. + */ + void Assign(User *u, ChannelInfo *ci); + + /** Remove this bot from a given channel. + * @param u The user requesting the unassign, or NULL. + * @param ci The channel registration to remove the bot from. + */ + void UnAssign(User *u, ChannelInfo *ci); }; diff --git a/include/extern.h b/include/extern.h index 94a6328ac..54e9134e8 100644 --- a/include/extern.h +++ b/include/extern.h @@ -74,7 +74,6 @@ E void save_bs_rdb_dbase(void); E BotInfo *findbot(const char *nick); E void bot_join(ChannelInfo *ci); E char *normalizeBuffer(const char *); -E void unassign(User * u, ChannelInfo * ci); E void insert_bot(BotInfo * bi); E void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick, char *reason); |