From ed73d7675152ccc66f20daedca8586a8de254a84 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 14 Mar 2011 13:52:26 -0400 Subject: Rewrote some of the opertype system, added os_login --- modules/extra/hs_request.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/extra/hs_request.cpp') diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp index 3b0a3c4cf..4978035d3 100644 --- a/modules/extra/hs_request.cpp +++ b/modules/extra/hs_request.cpp @@ -423,12 +423,17 @@ void req_send_memos(CommandSource &source, const Anope::string &vIdent, const An host = vHost; if (HSRequestMemoOper == 1) - for (it = Config->Opers.begin(), it_end = Config->Opers.end(); it != it_end; ++it) + for (unsigned i = 0; i < Config->Opers.size(); ++i) { - Anope::string nick = it->first; + Oper *o = Config->Opers[i]; + + NickAlias *na = findnick(o->name); + if (!na) + continue; + char message[BUFSIZE]; snprintf(message, sizeof(message), _("[auto memo] vHost \002%s\002 has been requested."), host.c_str()); - memo_send(source, nick, message, 2); + memo_send(source, na->nick, message, 2); } } -- cgit