From 869bd02318d94a38369a125726b8edeb54ba0706 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 May 2008 19:53:03 +0000 Subject: Convert channel banlist members to std::string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9769 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 84fa61b5a..83a3a5986 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -458,7 +458,6 @@ bool Channel::IsExtBanned(User *user, char type) { // XXX. do we need events? char mask[MAXBUF]; - char *maskptr; snprintf(mask, MAXBUF, "%s!%s@%s", user->nick.c_str(), user->ident.c_str(), user->GetIPString()); @@ -468,9 +467,7 @@ bool Channel::IsExtBanned(User *user, char type) continue; // Iterate past char and : to get to the mask without doing a data copy(!) - maskptr = i->data; - maskptr++; // past the char - maskptr++; // past the : + std::string maskptr = i->data.substr(2); /* This allows CIDR ban matching * -- cgit v1.2.3