diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 12:28:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 12:28:35 +0000 |
commit | 3a484a4afda5e7667843e109e2ff1e17786e3fb4 (patch) | |
tree | a670d02f329e1d1be1271b0333fe5d44700acc13 /src/modules/m_blockamsg.cpp | |
parent | 98fd8145d87a16a8bca10102f42fe0de954af967 (diff) |
Correctly use iterators and pointer to ucrec
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3584 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_blockamsg.cpp')
-rw-r--r-- | src/modules/m_blockamsg.cpp | 4 |
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. |