diff options
| author | 2006-03-08 23:16:18 +0000 | |
|---|---|---|
| committer | 2006-03-08 23:16:18 +0000 | |
| commit | aaf5226111f515f4baa68e95ea6a1db740828ac3 (patch) | |
| tree | ab8b622f04ebf09448ee0f2e02f32496812db003 /src/cmd_kick.cpp | |
| parent | Removed declarations of ancient and misspelled functions :/ (diff) | |
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/cmd_kick.cpp')
| -rw-r--r-- | src/cmd_kick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_kick.cpp b/src/cmd_kick.cpp index 5c272112c..8732dd7cf 100644 --- a/src/cmd_kick.cpp +++ b/src/cmd_kick.cpp @@ -51,7 +51,7 @@ void cmd_kick::Handle (char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, u ? parameters[0] : parameters[1]); return; } - if ((IS_LOCAL(user)) && (!has_channel(user,Ptr)) && (!is_uline(user->server))) + if ((IS_LOCAL(user)) && (!Ptr->HasUser(user)) && (!is_uline(user->server))) { WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, parameters[0]); return; |
