1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 11:36:38 +02:00

Rewrote some of the opertype system, added os_login

This commit is contained in:
Adam
2011-03-14 13:52:26 -04:00
parent 4fe49af840
commit ed73d76751
65 changed files with 393 additions and 201 deletions
+8 -3
View File
@@ -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);
}
}