+
+ // opers are lucky ducks, they always see the real reason
+ snprintf(killoperreason, MAXQUIT, "Killed (%s (%s))", user->nick, parameters[1]);
+ }
+ else
+ {
+ snprintf(killreason, MAXQUIT, "%s", parameters[1]);
+ /*
+ * XXX - yes, this means opers will probably see a censored kill remotely. this needs fixing.
+ * maybe a version of QuitUser that doesn't take nor propegate an oper reason? -- w00t
+ */
+ snprintf(killoperreason, MAXQUIT, "%s", parameters[1]);
+ }
+
+ /*
+ * Now we need to decide whether or not to send a local or remote snotice. Currently this checking is a little flawed.
+ * No time to fix it right now, so left a note. -- w00t
+ */
+ 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]);
+ FOREACH_MOD(I_OnRemoteKill, OnRemoteKill(user, u, killreason));