diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-29 00:34:13 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-29 00:34:13 +0000 |
commit | 3e9413c83584aaf5f38519f335d91aadfaf9ff8a (patch) | |
tree | d325d2ede6700aea2e61c0452e4a2d1ffd7b8716 /include | |
parent | f9d4002ba81b1d19743caa5400be8e802ad844f9 (diff) |
Added start of Services class to be used by new and existing pseudo-clients.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1814 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/bots.h | 2 | ||||
-rw-r--r-- | include/services.h | 31 |
2 files changed, 25 insertions, 8 deletions
diff --git a/include/bots.h b/include/bots.h index 7b175d99f..dc51f77f7 100644 --- a/include/bots.h +++ b/include/bots.h @@ -46,7 +46,7 @@ class CoreExport BotInfo /** Destroy a bot, clearing up appropriately. */ - ~BotInfo(); + virtual ~BotInfo(); /** Change the nickname set on a bot. * @param newnick The nick to change to diff --git a/include/services.h b/include/services.h index 782f46e0e..76174dad6 100644 --- a/include/services.h +++ b/include/services.h @@ -361,13 +361,13 @@ class CoreExport Extensible * @return Returns true on success. */ bool Shrink(const std::string &key) - {
- /* map::size_type map::erase( const key_type& key );
- * returns the number of elements removed, std::map
- * is single-associative so this should only be 0 or 1
- */
- return this->Extension_Items.erase(key);
- }
+ { + /* map::size_type map::erase( const key_type& key ); + * returns the number of elements removed, std::map + * is single-associative so this should only be 0 or 1 + */ + return this->Extension_Items.erase(key); + } /** Get an extension item. * @@ -1240,6 +1240,23 @@ struct capabinfo_ { /*************************************************************************/ +class CoreExport Services : public BotInfo +{ + public: + /** Create a new Services pseudo-client + * @param nick The nickname to assign to the pseudo-client. + * @param user The ident to assign to the pseudo-client. + * @param host The hostname to assign to the pseudo-client. + * @param real The realname to assign to the pseudo-client. + */ + Services(const char *nick, const char *user, const char *host, const char *real); + /** Destroy a pseudo-client, cleaning up appropriately. + */ + virtual ~Services(); +}; + +/*************************************************************************/ + /* * Forward declaration reqired, because the base IRCDProto class uses some crap from in here. */ |