From 2591562ada4cb1f866e5d1c98340fb19332b3844 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 17:52:10 +0000 Subject: Move tons more stuff into class InspIRCd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index bf2596bb1..b9e88a5bd 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -325,7 +325,7 @@ chanrec* chanrec::JoinUser(userrec *user, const char* cn, bool override, const c FOREACH_RESULT(I_OnCheckLimit,OnCheckLimit(user, Ptr)); if (!MOD_RESULT) { - if (usercount(Ptr) >= Ptr->limit) + if (Ptr->GetUserCounter() >= Ptr->limit) { user->WriteServ("471 %s %s :Cannot join channel (Channel is full)",user->nick, Ptr->name); return NULL; -- cgit v1.2.3