diff options
author | Adam <Adam@anope.org> | 2012-02-18 17:21:55 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-18 17:21:55 -0500 |
commit | 1536c5cf60dd183fb5c98651decde381a91ada44 (patch) | |
tree | 268d971c9566b5875e2c6d1f1d6059bfa0ed5b81 /modules/commands/cs_xop.cpp | |
parent | f2ce9cd85ce831ba291f3a6353b308802f327e87 (diff) |
Add users hostmask to access lists not nick when access add is used on a non registered user
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r-- | modules/commands/cs_xop.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 5ca488535..7935467c2 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -226,7 +226,16 @@ class XOPBase : public Command } if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL) - mask += "!*@*"; + { + User *targ = finduser(mask); + if (targ != NULL) + mask = "*!*@" + targ->GetDisplayedHost(); + else + { + source.Reply(NICK_X_NOT_REGISTERED, mask.c_str()); + return; + } + } for (unsigned i = 0; i < ci->GetAccessCount(); ++i) { |