1
0
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:
Naram Qashat
2010-06-26 01:38:19 -04:00
parent e447933c02
commit 6dc3af5db4
23 changed files with 80 additions and 128 deletions
+4 -4
View File
@@ -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());
}
};