summaryrefslogtreecommitdiff
path: root/src/modules/m_sanick.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-11 09:45:44 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-11 09:45:44 +0000
commit25c8c8ba0247236f660bbbbfc665ae735f88fc31 (patch)
tree18ac6d54a13f6265225ebf2fc0a590fc34478bb5 /src/modules/m_sanick.cpp
parent5db1d322be106c8462dc691072f9415dc0766ed4 (diff)
More -Wshadow fixes.. not really finished yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8893 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sanick.cpp')
-rw-r--r--src/modules/m_sanick.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 8b5e2f5a6..3f7affa8e 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -29,10 +29,10 @@ class CommandSanick : public Command
CmdResult Handle (const char** parameters, int pcnt, User *user)
{
- User* source = ServerInstance->FindNick(parameters[0]);
- if (source)
+ User* target = ServerInstance->FindNick(parameters[0]);
+ if (target)
{
- if (ServerInstance->ULine(source->server))
+ if (ServerInstance->ULine(target->server))
{
user->WriteServ("990 %s :Cannot use an SA command on a u-lined client",user->nick);
return CMD_FAILURE;
@@ -40,7 +40,7 @@ class CommandSanick : public Command
std::string oldnick = user->nick;
if (ServerInstance->IsNick(parameters[1]))
{
- if (source->ForceNickChange(parameters[1]))
+ if (target->ForceNickChange(parameters[1]))
{
ServerInstance->SNO->WriteToSnoMask('A', oldnick+" used SANICK to change "+std::string(parameters[0])+" to "+parameters[1]);
return CMD_SUCCESS;