aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-10 14:43:29 +0000
committerGravatar brain2006-08-10 14:43:29 +0000
commit396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 (patch)
treeb775fca47b8536d7e3c5df17480dbf4cca9f6ded /src/modules/m_check.cpp
parentChange to use the core perl module Cwd rather than the pwd command. Should be... (diff)
FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass, WriteOpers, GetServerDescription -> into classes
ServerConfig takes InspIRCd pointer in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp6
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. :| */