summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 1 insertions, 4 deletions
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
*