diff options
| author | 2006-01-01 20:57:42 +0000 | |
|---|---|---|
| committer | 2006-01-01 20:57:42 +0000 | |
| commit | 2cfcca8007d5fe3af11f51614d7b6c56e3cb242e (patch) | |
| tree | d361839c3197362034775d7c4553f658bb5d0a4f /src/helperfuncs.cpp | |
| parent | Class lookup adjustment (diff) | |
Fixes to typos and change to return by reference on GetClass
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2725 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 2ff939dc6..fd39aa0b1 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1153,16 +1153,16 @@ int usercount(chanrec *c) // looks up a users password for their connection class (<ALLOW>/<DENY> tags) -ConnectClass* GetClass(userrec *user) +ConnectClass GetClass(userrec *user) { for (ClassVector::iterator i = Config->Classes.begin(); i != Config->Classes.end(); i++) { if (match(user->host,i->host.c_str())) { - return (ConnectClass*)i->second; + return *i; } } - return ""; + return *(Config->Classes.begin()); } /* sends out an error notice to all connected clients (not to be used |
