summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-01 18:00:17 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-13 15:34:11 +0200
commitd71b6a8b273ae6efc823ffe79130e6a85b6a1534 (patch)
tree887827c70168b74321b030b573eb5887d3d8d38b /include
parent551d687ec6d7ce44be35fae0dd7345fe73c4f63a (diff)
Remove the deprecated invite API
Diffstat (limited to 'include')
-rw-r--r--include/users.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/users.h b/include/users.h
index 34bcc9c73..def7a146d 100644
--- a/include/users.h
+++ b/include/users.h
@@ -832,23 +832,18 @@ class CoreExport LocalUser : public User, public InviteBase
InviteList& GetInviteList();
/** Returns true if a user is invited to a channel.
- * @param channel A channel name to look up
+ * @param channel A channel to look up
* @return True if the user is invited to the given channel
*/
- bool IsInvited(const irc::string &channel);
-
- /** Adds a channel to a users invite list (invites them to a channel)
- * @param channel A channel name to add
- * @param timeout When the invite should expire (0 == never)
- */
- void InviteTo(const irc::string &channel, time_t timeout);
+ bool IsInvited(Channel* chan) { return (Invitation::Find(chan, this) != NULL); }
/** Removes a channel from a users invite list.
* This member function is called on successfully joining an invite only channel
* to which the user has previously been invited, to clear the invitation.
* @param channel The channel to remove the invite to
+ * @return True if the user was invited to the channel and the invite was erased, false if the user wasn't invited
*/
- void RemoveInvite(const irc::string &channel);
+ bool RemoveInvite(Channel* chan);
void RemoveExpiredInvites();