summaryrefslogtreecommitdiff
path: root/src/modules/m_blockamsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockamsg.cpp')
-rw-r--r--src/modules/m_blockamsg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp
index b3136ee75..8af55de0f 100644
--- a/src/modules/m_blockamsg.cpp
+++ b/src/modules/m_blockamsg.cpp
@@ -121,8 +121,8 @@ public:
if((*c == ',') && *(c+1) && (*(c+1) == '#'))
targets++;
- for(unsigned int i = 0; i < user->chans.size(); i++)
- if(user->chans[i].channel)
+ for(std::vector<ucrec*>::iterator f = user->chans.begin(); f != user->chans.end(); f++)
+ if(((ucrec*)(*f))->channel)
userchans++;
// Check that this message wasn't already sent within a few seconds.