summaryrefslogtreecommitdiff
path: root/src/cmd_list.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
commit1cbf29e3cd070c12437a657b47fc433008b2c74d (patch)
tree22b7a435ffd8bfa7dd97f2457b73df564753eddc /src/cmd_list.cpp
parent89749a74402913d50bd5a9140757a383d6ff175e (diff)
Move clientlist and chanlist into InspIRCd*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_list.cpp')
-rw-r--r--src/cmd_list.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp
index f08e56d20..26fa3cc10 100644
--- a/src/cmd_list.cpp
+++ b/src/cmd_list.cpp
@@ -18,14 +18,15 @@
#include "ctables.h"
#include "commands.h"
#include "helperfuncs.h"
+#include "inspircd.h"
#include "commands/cmd_list.h"
-extern chan_hash chanlist;
+extern InspIRCd* ServerInstance;
void cmd_list::Handle (const char** parameters, int pcnt, userrec *user)
{
user->WriteServ("321 %s Channel :Users Name",user->nick);
- for (chan_hash::const_iterator i = chanlist.begin(); i != chanlist.end(); i++)
+ for (chan_hash::const_iterator i = ServerInstance->chanlist.begin(); i != ServerInstance->chanlist.end(); i++)
{
// if the channel is not private/secret, OR the user is on the channel anyway
bool n = i->second->HasUser(user);