diff options
Diffstat (limited to 'include/services.h')
-rw-r--r-- | include/services.h | 31 |
1 files changed, 24 insertions, 7 deletions
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. */ |