summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 13:47:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 13:47:59 +0000
commit0c7ed930d5b7975ab96764db200aaf383b7cde95 (patch)
tree54c5300b7c7d6c57562d97269d002432a9b88ab3 /src/channels.cpp
parent85e2be16c6bdb0f4cb6eaef6910d7250e03d7186 (diff)
Fixed to use irc::string now for invite functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2470 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index d1bb4b8a3..ef1f8b6ad 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -276,12 +276,13 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
}
if (Ptr->binarymodes & CM_INVITEONLY)
{
- MOD_RESULT = 0;
+ MOD_RESULT = 0;
+ irc::string xname(Ptr->name);
FOREACH_RESULT(OnCheckInvite(user, Ptr));
if (!MOD_RESULT)
{
log(DEBUG,"add_channel: channel is +i");
- if (user->IsInvited(Ptr->name))
+ if (user->IsInvited(xname))
{
/* user was invited to channel */
/* there may be an optional channel NOTICE here */
@@ -292,7 +293,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
return NULL;
}
}
- user->RemoveInvite(Ptr->name);
+ user->RemoveInvite(xname);
}
if (Ptr->limit)
{