aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_uninvite.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-08 23:16:18 +0000
committerGravatar brain2006-03-08 23:16:18 +0000
commitaaf5226111f515f4baa68e95ea6a1db740828ac3 (patch)
treeab8b622f04ebf09448ee0f2e02f32496812db003 /src/modules/m_uninvite.cpp
parentRemoved declarations of ancient and misspelled functions :/ (diff)
downloadinspircd++-aaf5226111f515f4baa68e95ea6a1db740828ac3.tar.gz
inspircd++-aaf5226111f515f4baa68e95ea6a1db740828ac3.tar.bz2
inspircd++-aaf5226111f515f4baa68e95ea6a1db740828ac3.zip
Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is channel->HasUser(userrec)
Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_uninvite.cpp')
-rw-r--r--src/modules/m_uninvite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp
index e9c2078cb..dbd3af52f 100644
--- a/src/modules/m_uninvite.cpp
+++ b/src/modules/m_uninvite.cpp
@@ -70,7 +70,7 @@ class cmd_uninvite : public command_t
WriteServ(user->fd,"491 %s %s %s :Is not invited to channel %s",user->nick,u->nick,c->name,c->name);
return;
}
- if (!has_channel(user,c))
+ if (!c->HasUser(user))
{
WriteServ(user->fd,"492 %s %s :You're not on that channel!",user->nick, c->name);
return;