From 80e88c163dbd77b06b61d4fd734d51249cc0e172 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 1 Apr 2013 17:05:12 +0200 Subject: Move member variables from User to LocalUser - idle_lastmsg - dns_done - quitting_sendq - exempt - lastping --- src/modules/m_cgiirc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_cgiirc.cpp') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index d4ef602b3..39833f1a0 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -136,6 +136,10 @@ class CGIResolver : public Resolver User* them = ServerInstance->FindUUID(theiruid); if ((them) && (!them->quitting)) { + LocalUser* lu = IS_LOCAL(them); + if (!lu) + return; + if (notify) ServerInstance->SNO->WriteGlobalSno('a', "Connecting user %s detected as using CGI:IRC (%s), changing real host to %s from %s", them->nick.c_str(), them->host.c_str(), result.c_str(), typ.c_str()); @@ -144,7 +148,7 @@ class CGIResolver : public Resolver them->host = result; them->dhost = result; them->InvalidateCache(); - them->CheckLines(true); + lu->CheckLines(true); } } -- cgit v1.3.1-10-gc9f91