summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commitc4d520b465f8aa7f5924b17b697fa760b6ead409 (patch)
tree96f6c2164077f7319bc6be855ce250e23ec9f07d /include/bots.h
parent76cc8d0462422eed9d7af255b152c24697821309 (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/bots.h')
-rw-r--r--include/bots.h12
1 files changed, 12 insertions, 0 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);
};