mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
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:
parent
06432980d9
commit
18ecd877f5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user