diff options
| author | 2006-08-10 14:43:29 +0000 | |
|---|---|---|
| committer | 2006-08-10 14:43:29 +0000 | |
| commit | 396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 (patch) | |
| tree | b775fca47b8536d7e3c5df17480dbf4cca9f6ded /src/cmd_names.cpp | |
| parent | Change to use the core perl module Cwd rather than the pwd command. Should be... (diff) | |
| download | inspircd++-396c9ef9f7a96934d3227bb7d1d091315e3d4fa8.tar.gz inspircd++-396c9ef9f7a96934d3227bb7d1d091315e3d4fa8.tar.bz2 inspircd++-396c9ef9f7a96934d3227bb7d1d091315e3d4fa8.zip | |
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/cmd_names.cpp')
| -rw-r--r-- | src/cmd_names.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_names.cpp b/src/cmd_names.cpp index 318846d13..0ce00e4ba 100644 --- a/src/cmd_names.cpp +++ b/src/cmd_names.cpp @@ -35,7 +35,7 @@ void cmd_names::Handle (const char** parameters, int pcnt, userrec *user) if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0)) return; - c = FindChan(parameters[0]); + c = ServerInstance->FindChan(parameters[0]); if (c) { if ((c->modes[CM_SECRET]) && (!c->HasUser(user))) @@ -43,7 +43,7 @@ void cmd_names::Handle (const char** parameters, int pcnt, userrec *user) user->WriteServ("401 %s %s :No such nick/channel",user->nick, c->name); return; } - userlist(user,c); + c->UserList(user); user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, c->name); } else |
