diff options
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 7dcb86d38..f8d84154e 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -53,8 +53,8 @@ class cmd_check : public command_t checkstr = "304 " + std::string(user->nick) + " :CHECK"; - targuser = Srv->FindNick(std::string(parameters[0])); - targchan = Srv->FindChannel(std::string(parameters[0])); + targuser = ServerInstance->FindNick(parameters[0]); + targchan = ServerInstance->FindChan(parameters[0]); /* * Syntax of a /check reply: @@ -114,7 +114,7 @@ class cmd_check : public command_t user->WriteServ(checkstr + " topic_setat " + timebuf); } - user->WriteServ(checkstr + " modes " + chanmodes(targchan, true)); + user->WriteServ(checkstr + " modes " + targchan->ChanModes(true)); user->WriteServ(checkstr + " membercount " + ConvToStr(targchan->GetUserCounter())); /* now the ugly bit, spool current members of a channel. :| */ |