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 | 914e0359e0225f84698990117b45f8218a788983 (patch) | |
| tree | f907f0d74ea7e74f7966c97f5b2e8a1716cd991e /include/bots.h | |
| parent | 56084dce3308e25b5e48d6b7a3fd7eeb45f694e8 (diff) | |
Move stuff to a bots class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1224 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/bots.h')
| -rw-r--r-- | include/bots.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/bots.h b/include/bots.h index 3e9b97b48..50fb844e2 100644 --- a/include/bots.h +++ b/include/bots.h @@ -29,5 +29,20 @@ class BotInfo int16 chancount; /* Number of channels that use the bot. */ /* Dynamic data */ time_t lastmsg; /* Last time we said something */ + + /** Create a new bot. + * @param nick The nickname to assign to the bot. + */ + BotInfo(const char *nick); + + /** Change the nickname set on a bot. + * @param newnick The nick to change to + */ + void ChangeNick(const char *newnick); + + /** Rejoins all channels that this bot is assigned to. + * Used on /kill, rename, etc. + */ + void RejoinAll(); }; |
