From 890e00d5956ff31fd95a6bb667f7918e2e97af3a Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 8 Jun 2007 21:53:28 +0000 Subject: Enable SNOMASK 'K' (remote kill), and use it in cmd_kill. This has the side effect of hiding kills from a server prefix at the moment as they work differently (ugh). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7260 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_kill.cpp | 2 +- src/snomasks.cpp | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index bd437c03a..373ec7c9d 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -87,7 +87,7 @@ CmdResult cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) if (!IS_LOCAL(u)) { // remote kill - ServerInstance->SNO->WriteToSnoMask('k',"Remote kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]); + ServerInstance->SNO->WriteToSnoMask('K', "Remote kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]); FOREACH_MOD(I_OnRemoteKill, OnRemoteKill(user, u, killreason)); } else diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 028004f86..ba6d3d7d5 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -86,16 +86,17 @@ bool SnomaskManager::IsEnabled(char letter) void SnomaskManager::SetupDefaults() { - this->EnableSnomask('c',"CONNECT"); /* Local connect notices */ + this->EnableSnomask('c',"CONNECT"); /* Local connect notices */ this->EnableSnomask('C',"REMOTECONNECT"); /* Remote connect notices */ - this->EnableSnomask('q',"QUIT"); /* Local quit notices */ + this->EnableSnomask('q',"QUIT"); /* Local quit notices */ this->EnableSnomask('Q',"REMOTEQUIT"); /* Remote quit notices */ - this->EnableSnomask('k',"KILL"); /* Kill notices */ - this->EnableSnomask('l',"LINK"); /* Link notices */ - this->EnableSnomask('o',"OPER"); /* Oper up/down notices */ - this->EnableSnomask('d',"DEBUG"); /* Debug notices */ - this->EnableSnomask('x',"XLINE"); /* Xline notice (g/z/q/k/e) */ - this->EnableSnomask('t',"STATS"); /* Local or remote stats request */ - this->EnableSnomask('f',"FLOOD"); /* Flooding notices */ + this->EnableSnomask('k',"KILL"); /* Kill notices */ + this->EnableSnomask('K',"REMOTEKILL"); /* Remote kill notices */ + this->EnableSnomask('l',"LINK"); /* Link notices */ + this->EnableSnomask('o',"OPER"); /* Oper up/down notices */ + this->EnableSnomask('d',"DEBUG"); /* Debug notices */ + this->EnableSnomask('x',"XLINE"); /* Xline notice (g/z/q/k/e) */ + this->EnableSnomask('t',"STATS"); /* Local or remote stats request */ + this->EnableSnomask('f',"FLOOD"); /* Flooding notices */ } -- cgit v1.2.3