mirror of
https://github.com/anope/anope.git
synced 2026-07-09 08:03:13 +02:00
The next of a few "CBX OCDing over code style" commits, focusing on src/core/hs_* and src/core/ms_*, plus some tiny fallout caused by changing the FOREACH_* macros.
This commit is contained in:
@@ -7,9 +7,8 @@
|
||||
*
|
||||
* Based on the original code of Epona by Lara.
|
||||
* Based on the original code of Services by Andy Church.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
#include "module.h"
|
||||
@@ -34,10 +33,10 @@ class CommandMSSendAll : public Command
|
||||
|
||||
NickAlias *na = findnick(u->nick);
|
||||
|
||||
for (nickcore_map::const_iterator it = NickCoreList.begin(); it != NickCoreList.end(); ++it)
|
||||
for (nickcore_map::const_iterator it = NickCoreList.begin(), it_end = NickCoreList.end(); it != it_end; ++it)
|
||||
{
|
||||
NickCore *nc = it->second;
|
||||
|
||||
|
||||
if ((na && na->nc == nc) || stricmp(u->nick.c_str(), nc->display))
|
||||
memo_send(u, nc->display, text, z);
|
||||
}
|
||||
@@ -71,6 +70,7 @@ class MSSendAll : public Module
|
||||
this->SetAuthor("Anope");
|
||||
this->SetVersion(VERSION_STRING);
|
||||
this->SetType(CORE);
|
||||
|
||||
this->AddCommand(MemoServ, new CommandMSSendAll());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user