summaryrefslogtreecommitdiff
path: root/src/channels.cpp
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 /src/channels.cpp
parent551d687ec6d7ce44be35fae0dd7345fe73c4f63a (diff)
Remove the deprecated invite API
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 7138880ff..b8406a65a 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -319,7 +319,7 @@ Channel* Channel::JoinUser(User* user, std::string cname, bool override, const s
else if (MOD_RESULT == MOD_RES_PASSTHRU)
{
std::string ckey = Ptr->GetModeParameter('k');
- bool invited = IS_LOCAL(user)->IsInvited(Ptr->name.c_str());
+ bool invited = IS_LOCAL(user)->IsInvited(Ptr);
bool can_bypass = ServerInstance->Config->InvBypassModes && invited;
if (!ckey.empty())
@@ -366,7 +366,7 @@ Channel* Channel::JoinUser(User* user, std::string cname, bool override, const s
*/
if (invited)
{
- IS_LOCAL(user)->RemoveInvite(Ptr->name.c_str());
+ IS_LOCAL(user)->RemoveInvite(Ptr);
}
}
}