From 4c65d06850f4440498ee37387d7b578478a619aa Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 12:34:57 +0000 Subject: Changed two fields in ConnectClass to strings, moved constructor stuff to init-list git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2632 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 037a7a3af..3bc2bb79a 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -922,9 +922,9 @@ char* Passwd(userrec *user) { for (ClassVector::iterator i = Config->Classes.begin(); i != Config->Classes.end(); i++) { - if ((i->type == CC_ALLOW) && match(user->host,i->host)) + if ((i->type == CC_ALLOW) && match(user->host,i->host.c_str())) { - return i->pass; + return (char*)i->pass.c_str(); } } return ""; @@ -934,7 +934,7 @@ bool IsDenied(userrec *user) { for (ClassVector::iterator i = Config->Classes.begin(); i != Config->Classes.end(); i++) { - if ((i->type == CC_DENY) && match(user->host,i->host)) + if ((i->type == CC_DENY) && match(user->host,i->host.c_str())) { return true; } -- cgit v1.2.3