diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-05-13 02:18:33 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-05-13 02:18:33 +0000 |
commit | 78ec14490c922588e2c2a9c47c01518b33a677b7 (patch) | |
tree | 4c4991ae7ddfa1143373472e9e8364027fba7348 /src/modules/m_sakick.cpp | |
parent | 6075913736e98354c007728658506c93e3503f0b (diff) |
Fix an issue in r11370 spotted by danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11371 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sakick.cpp')
-rw-r--r-- | src/modules/m_sakick.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp index cc8628c50..5755281d4 100644 --- a/src/modules/m_sakick.cpp +++ b/src/modules/m_sakick.cpp @@ -61,12 +61,7 @@ class CommandSakick : public Command delete channel; Channel *n = ServerInstance->FindChan(parameters[1]); - if (!n || !n->HasUser(dest)) - { - /* Success; send the global snomask */ - ServerInstance->PI->SendSNONotice("A", std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]); - } - else + if (n && n->HasUser(dest)) { /* Sort-of-bug: If the command was issued remotely, this message won't be sent */ user->WriteServ("NOTICE %s :*** Unable to kick %s from %s", user->nick.c_str(), dest->nick.c_str(), parameters[0].c_str()); @@ -76,8 +71,9 @@ class CommandSakick : public Command if (IS_LOCAL(user)) { - /* Locally issued command; send the local snomask */ + /* Locally issued command; send the snomasks */ ServerInstance->SNO->WriteToSnoMask('a', std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]); + ServerInstance->PI->SendSNONotice("A", std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]); } return CMD_SUCCESS; |