summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 15:35:40 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 15:35:40 +0000
commit3d2a89504ac933c87e92032c27be84b24dc4bdff (patch)
tree408c1ee507b1b426db85fe7981956503601b5725 /include
parentfecd6851e063d091cf57acc069d69ddb8a1beb04 (diff)
remove redundant variable and fix log output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2886 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/u_listmode.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index b6cac9c50..233dd5310 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -45,7 +45,6 @@ typedef std::vector<ListLimit> limitlist;
class ListModeBaseModule : public Module
{
protected:
- int maxlist;
char mode;
std::string infokey;
std::string listnumeric;
@@ -147,12 +146,15 @@ public:
}
}
+ unsigned int maxsize = 0;
+
for(limitlist::iterator it = chanlimits.begin(); it != chanlimits.end(); it++)
{
if(Srv->MatchText(chan->name, it->mask))
{
// We have a pattern matching the channel...
- if(el->size() < it->limit)
+ maxsize = el->size();
+ if(maxsize < it->limit)
{
// And now add the mask onto the list...
ListItem e;
@@ -169,7 +171,7 @@ public:
// List is full
WriteServ(user->fd, "478 %s %s %s :Channel ban/ignore list is full", user->nick, chan->name, params[0].c_str());
- log(DEBUG, "m_exceptionbase.so: %s tried to set mask %s on %s but the list is full (max %d)", user->nick, params[0].c_str(), chan->name, maxlist);
+ log(DEBUG, "m_exceptionbase.so: %s tried to set mask %s on %s but the list is full (max %d)", user->nick, params[0].c_str(), chan->name, maxsize);
return -1;
}
else