summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0708a03)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2497
e03df62e-2008-0410-955e-
edbf42e46eb7
va_end(argsPtr);
// FIX: Stops a message going to the same person more than once
va_end(argsPtr);
// FIX: Stops a message going to the same person more than once
- memset(&already_sent,0,65536);
+ memset(&already_sent,0,MAXCLIENTS);
bool sent_to_at_least_one = false;
bool sent_to_at_least_one = false;
if (u->chans[i].channel)
{
std::vector<char*> *ulist = u->chans[i].channel->GetUsers();
if (u->chans[i].channel)
{
std::vector<char*> *ulist = u->chans[i].channel->GetUsers();
- for (unsigned int j = 0; j < ulist->size(); j++)
+ unsigned int x = ulist->size();
+ for (unsigned int j = 0; j < x; j++)
{
char* o = (*ulist)[j];
userrec* otheruser = (userrec*)o;
{
char* o = (*ulist)[j];
userrec* otheruser = (userrec*)o;