diff options
author | Adam <Adam@anope.org> | 2017-10-07 21:10:47 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-07 21:10:47 -0400 |
commit | 2312f1fbd06ac01bb55e1d99070cde05a09a5a17 (patch) | |
tree | 69239628ed39e342650574f93d441f58d6d82b7b /modules/nickserv/ajoin.cpp | |
parent | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff) |
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/nickserv/ajoin.cpp')
-rw-r--r-- | modules/nickserv/ajoin.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/nickserv/ajoin.cpp b/modules/nickserv/ajoin.cpp index d7689205d..79ca271c3 100644 --- a/modules/nickserv/ajoin.cpp +++ b/modules/nickserv/ajoin.cpp @@ -321,12 +321,7 @@ class NSAJoin : public Module for (AutoJoin *entry : channels) { Channel *c = Channel::Find(entry->GetChannel()); - ChanServ::Channel *ci; - - if (c) - ci = c->ci; - else - ci = ChanServ::Find(entry->GetChannel()); + ChanServ::Channel *ci = ChanServ::Find(entry->GetChannel()); bool need_invite = false; Anope::string key = entry->GetKey(); |