summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:34:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:34:57 +0000
commit4c65d06850f4440498ee37387d7b578478a619aa (patch)
treea8792dc35c6d8bd657c1235226db1c7142354407 /src/helperfuncs.cpp
parent826aebdb72feceeb1acdf670f46f2975a11083bc (diff)
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
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}