diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
| commit | c4d520b465f8aa7f5924b17b697fa760b6ead409 (patch) | |
| tree | 96f6c2164077f7319bc6be855ce250e23ec9f07d /include | |
| parent | 76cc8d0462422eed9d7af255b152c24697821309 (diff) | |
Move some stuff to BotInfo methods.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1232 5417fbe8-f217-4b02-8779-1006273d7864
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); |
