1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 05:56:38 +02:00

Readonlyize many commands

This commit is contained in:
Adam
2013-09-20 21:07:50 -04:00
parent 8641b995c4
commit e5ece18ee7
33 changed files with 334 additions and 50 deletions
+6
View File
@@ -76,6 +76,12 @@ class NSResetPass : public Module
{
if (command->name == "nickserv/confirm" && params.size() > 1)
{
if (Anope::ReadOnly)
{
source.Reply(READ_ONLY_MODE);
return EVENT_STOP;
}
NickAlias *na = NickAlias::Find(params[0]);
ResetInfo *ri = na ? reset.Get(na->nc) : NULL;