mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Change some stuff around to make sure metadata/fmode comes after nick list if sent by modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6957 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
1becbd4f03
commit
abdcc7adfa
@ -1163,14 +1163,16 @@ void TreeSocket::SendUsers(TreeServer* Current)
|
||||
snprintf(data,MAXBUF,":%s AWAY :%s", u->second->nick, u->second->awaymsg);
|
||||
this->WriteLine(data);
|
||||
}
|
||||
FOREACH_MOD_I(this->Instance,I_OnSyncUser,OnSyncUser(u->second,(Module*)Utils->Creator,(void*)this));
|
||||
list.clear();
|
||||
u->second->GetExtList(list);
|
||||
|
||||
for (unsigned int j = 0; j < list.size(); j++)
|
||||
{
|
||||
FOREACH_MOD_I(this->Instance,I_OnSyncUserMetaData,OnSyncUserMetaData(u->second,(Module*)Utils->Creator,(void*)this,list[j]));
|
||||
}
|
||||
}
|
||||
}
|
||||
for (user_hash::iterator u = this->Instance->clientlist->begin(); u != this->Instance->clientlist->end(); u++)
|
||||
{
|
||||
FOREACH_MOD_I(this->Instance,I_OnSyncUser,OnSyncUser(u->second,(Module*)Utils->Creator,(void*)this));
|
||||
list.clear();
|
||||
u->second->GetExtList(list);
|
||||
for (unsigned int j = 0; j < list.size(); j++)
|
||||
{
|
||||
FOREACH_MOD_I(this->Instance,I_OnSyncUserMetaData,OnSyncUserMetaData(u->second,(Module*)Utils->Creator,(void*)this,list[j]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user