summaryrefslogtreecommitdiff
path: root/src/cmd_kick.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 00:39:13 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 00:39:13 +0000
commit60f91c5c3c313115dc4e92af9d728c493d8bc6aa (patch)
tree616f6768f108142bca9823b75a16b1109e8d7db0 /src/cmd_kick.cpp
parentf6becbd4e6c07e2e316dc2b52a0616e42102b8f0 (diff)
More of the same cleanup :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3573 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kick.cpp')
-rw-r--r--src/cmd_kick.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd_kick.cpp b/src/cmd_kick.cpp
index 8732dd7cf..9aaa96d1f 100644
--- a/src/cmd_kick.cpp
+++ b/src/cmd_kick.cpp
@@ -42,31 +42,31 @@ using namespace std;
void cmd_kick::Handle (char **parameters, int pcnt, userrec *user)
{
char reason[MAXKICK];
-
- chanrec* Ptr = FindChan(parameters[0]);
+ chanrec* c = FindChan(parameters[0]);
userrec* u = Find(parameters[1]);
- if (!u || !Ptr)
+ if (!u || !c)
{
- WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, u ? parameters[0] : parameters[1]);
+ WriteServ(user->fd, "401 %s %s :No such nick/channel", user->nick, u ? parameters[0] : parameters[1]);
return;
}
- if ((IS_LOCAL(user)) && (!Ptr->HasUser(user)) && (!is_uline(user->server)))
+
+ if ((IS_LOCAL(user)) && (!c->HasUser(user)) && (!is_uline(user->server)))
{
- WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, parameters[0]);
+ WriteServ(user->fd, "442 %s %s :You're not on that channel!", user->nick, parameters[0]);
return;
}
if (pcnt > 2)
{
- strlcpy(reason,parameters[2],MAXKICK-1);
- kick_channel(user,u,Ptr,reason);
+ strlcpy(reason, parameters[2], MAXKICK - 1);
}
else
{
- strlcpy(reason,user->nick,MAXKICK-1);
- kick_channel(user,u,Ptr,reason);
+ strlcpy(reason, user->nick, MAXKICK - 1);
}
+
+ kick_channel(user, u, c, reason);
}