From 18ecd877f51a5727f6a34f7174bf4b5516b9d337 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 6 Apr 2009 00:57:19 +0000 Subject: 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 --- src/modules/m_shun.cpp | 8 ++++---- 1 file 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 tag perhaps.. long duration; std::string expr; -- cgit v1.2.3