diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-18 02:57:46 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-18 02:57:46 +0000 |
commit | e50d016aa23083f81dcf181f68edb81c5b23c78d (patch) | |
tree | 2f627c4d456ec360a05c013832142df187e193d6 /include | |
parent | 93a78a57ada6d5dab410c2bd3c4b02f4fa15684c (diff) |
Cull channels, warn when Extensible objects are not culled as they must be
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11901 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/channels.h | 8 | ||||
-rw-r--r-- | include/extensible.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/channels.h b/include/channels.h index 7728bb55b..2915ed390 100644 --- a/include/channels.h +++ b/include/channels.h @@ -204,7 +204,7 @@ class CoreExport Channel : public Extensible * @param user The user to delete * @return number of users left on the channel after deletion of the user */ - unsigned long DelUser(User* user); + void DelUser(User* user); /** Obtain the internal reference list * The internal reference list contains a list of User*. @@ -232,7 +232,7 @@ class CoreExport Channel : public Extensible * @return The number of users left on the channel. If this is zero * when the method returns, you MUST delete the Channel immediately! */ - long KickUser(User *src, User *user, const char* reason); + void KickUser(User *src, User *user, const char* reason); /** Make the server kick user from this channel with the given reason. * @param user The user being kicked (must be on this channel) @@ -241,7 +241,7 @@ class CoreExport Channel : public Extensible * @return The number of users left on the channel. If this is zero * when the method returns, you MUST delete the Channel immediately! */ - long ServerKickUser(User* user, const char* reason, const std::string& servername = ""); + void ServerKickUser(User* user, const char* reason, const std::string& servername = ""); /** Part a user from this channel with the given reason. * If the reason field is NULL, no reason will be sent. @@ -250,7 +250,7 @@ class CoreExport Channel : public Extensible * @return The number of users left on the channel. If this is zero * when the method returns, you MUST delete the Channel immediately! */ - long PartUser(User *user, std::string &reason); + void PartUser(User *user, std::string &reason); /* Join a user to a channel. May be a channel that doesnt exist yet. * @param user The user to join to the channel. diff --git a/include/extensible.h b/include/extensible.h index 449c7b38a..62edb8896 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -72,6 +72,7 @@ class CoreExport Extensible : public classbase */ inline const ExtensibleStore& GetExtList() const { return extensions; } + Extensible(); virtual CullResult cull(); virtual ~Extensible(); void doUnhookExtensions(const std::vector<ExtensionItem*>& toRemove); |