- if(action == IBLOCK_KILLOPERS || action == IBLOCK_NOTICEOPERS)
- ServerInstance->SNO->WriteToSnoMask('A', "%s had an /amsg or /ame denied", user->nick);
-
- if(action == IBLOCK_KILL || action == IBLOCK_KILLOPERS)
- User::QuitUser(ServerInstance, user, "Global message (/amsg or /ame) detected");
- else if(action == IBLOCK_NOTICE || action == IBLOCK_NOTICEOPERS)
- user->WriteServ( "NOTICE %s :Global message (/amsg or /ame) detected", user->nick);
-
- return 1;
+ if (action == IBLOCK_KILLOPERS || action == IBLOCK_NOTICEOPERS)
+ ServerInstance->SNO->WriteToSnoMask('a', "%s had an /amsg or /ame blocked", user->nick.c_str());
+
+ if (action == IBLOCK_KILL || action == IBLOCK_KILLOPERS)
+ ServerInstance->Users->QuitUser(user, "Attempted to global message (/amsg or /ame)");
+ else if (action == IBLOCK_NOTICE || action == IBLOCK_NOTICEOPERS)
+ user->WriteNotice("Global message (/amsg or /ame) blocked");
+
+ return MOD_RES_DENY;