summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-06 00:57:19 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-06 00:57:19 +0000
commit18ecd877f51a5727f6a34f7174bf4b5516b9d337 (patch)
tree433d8978d4b6a19cbf03289cb75fb9cd5388ecb4 /src/modules
parent06432980d90b4bdfb6af08c7fb69327023f64ea8 (diff)
m_shun: Allow nick targets for removal as well, in the same format as addition
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11290 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_shun.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 6fc65cb19..f65b89ccf 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -93,6 +93,10 @@ class CommandShun : public Command
/* 'time' is a human-readable timestring, like 2d3h2s. */
std::string target = parameters[0];
+
+ User *find = ServerInstance->FindNick(target.c_str());
+ if (find)
+ target = std::string("*!*@") + find->GetIPString();
if (parameters.size() == 1)
{
@@ -110,10 +114,6 @@ class CommandShun : public Command
}
else if (parameters.size() >= 2)
{
- User* find = ServerInstance->FindNick(target.c_str());
- if (find)
- target = std::string("*!*@") + find->GetIPString();
-
// Adding - XXX todo make this respect <insane> tag perhaps..
long duration;
std::string expr;