summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-11 10:16:35 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-11 10:16:35 +0000
commit8fa67528583b83a23030d5d358e070586672cc87 (patch)
treefc2f1a81de12c8a1f8bb73148b102b0a5461111a /src/modules/hs_request.c
parenta68b5efe279cafc3b2d81b335871091813c940d2 (diff)
Cleanup of internals of new opertype stuff by Adam. Removes OS OPER and OS ADMIN, changes OS STAFF to be more helpful in their place.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2319 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 919f42b2d..71efc4c12 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -818,9 +818,9 @@ void my_memo_lang(User *u, char *name, int z, int number, ...)
void req_send_memos(User *u, char *vIdent, char *vHost)
{
- int i;
int z = 2;
- char host[50];
+ char host[BUFSIZE];
+ std::list<std::pair<std::string, std::string> >::iterator it;
if (checkDefCon(DEFCON_NO_NEW_MEMOS))
return;
@@ -832,12 +832,11 @@ void req_send_memos(User *u, char *vIdent, char *vHost)
if (HSRequestMemoOper == 1)
{
- for (i = 0; i < servopers.count; ++i)
- my_memo_lang(u, (static_cast<NickCore *>(servopers.list[i]))->display, z, LNG_REQUEST_MEMO, host);
- for (i = 0; i < servadmins.count; ++i)
- my_memo_lang(u, (static_cast<NickCore *>(servadmins.list[i]))->display, z, LNG_REQUEST_MEMO, host);
- for (i = 0; i < RootNumber; ++i)
- my_memo_lang(u, ServicesRoots[i], z, LNG_REQUEST_MEMO, host);
+ for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); it++)
+ {
+ const std::string nick = it->first;
+ my_memo_lang(u, const_cast<char *>(nick.c_str()), z, LNG_REQUEST_MEMO, host);
+ }
}
if (HSRequestMemoSetters == 1)
{