summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-01 17:05:12 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-01 17:05:12 +0200
commit80e88c163dbd77b06b61d4fd734d51249cc0e172 (patch)
tree2ee3fa3fea938c56f3c7d4fc31bea02eaa664d7e /src/modules/m_shun.cpp
parentc1b376cd396f56e4d0eb3eafc04ff169e509ffc7 (diff)
Move member variables from User to LocalUser
- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 21959e400..c858e62ec 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -43,7 +43,8 @@ public:
bool Matches(User *u)
{
// E: overrides shun
- if (u->exempt)
+ LocalUser* lu = IS_LOCAL(u);
+ if (lu && lu->exempt)
return false;
if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext) || InspIRCd::Match(u->nick+"!"+u->ident+"@"+u->GetIPString(), matchtext))
@@ -107,7 +108,7 @@ class CommandShun : public Command
/* 'time' is a human-readable timestring, like 2d3h2s. */
std::string target = parameters[0];
-
+
User *find = ServerInstance->FindNick(target);
if ((find) && (find->registered == REG_ALL))
target = std::string("*!*@") + find->GetIPString();