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
This commit is contained in:
special 2009-04-06 00:57:19 +00:00
parent 06432980d9
commit 18ecd877f5

View File

@ -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;