X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_kill.c;h=b038bc884d496e770eec2c25badfadc3e967a2ea;hb=refs%2Fheads%2Fupstream;hp=4f7f7fb2212ddebc388ff1fa2b7cfaefba00f283;hpb=5ba09703da9f8f21f3278dc0222cd6fe077cfe31;p=ircu2.10.12-pk.git diff --git a/ircd/m_kill.c b/ircd/m_kill.c index 4f7f7fb..b038bc8 100644 --- a/ircd/m_kill.c +++ b/ircd/m_kill.c @@ -96,7 +96,7 @@ #include "send.h" #include "whowas.h" -#include +/* #include -- Now using assert in ircd_log.h */ #include /* @@ -119,7 +119,7 @@ static int do_kill(struct Client* cptr, struct Client* sptr, * have changed the target because of the nickname change. */ sendto_opmask_butone(0, IsServer(sptr) ? SNO_SERVKILL : SNO_OPERKILL, - "Received KILL message for %s. From %s Path: %s!%s %s", + "Received KILL message for %s from %s Path: %s!%s %s", get_client_name(victim, SHOW_IP), cli_name(sptr), inpath, path, msg); log_write_kill(victim, sptr, inpath, path, msg); @@ -151,18 +151,18 @@ static int do_kill(struct Client* cptr, struct Client* sptr, * always sees the kill as coming from me. */ if (MyConnect(victim)) - sendcmdto_one(feature_bool(FEAT_HIS_KILLWHO) ? &me : sptr, CMD_KILL, + sendcmdto_one(feature_bool(FEAT_HIS_KILLWHO) ? &his : sptr, CMD_KILL, victim, "%C :%s %s", victim, feature_bool(FEAT_HIS_KILLWHO) ? feature_str(FEAT_HIS_SERVERNAME) : cli_name(sptr), msg); return exit_client_msg(cptr, victim, feature_bool(FEAT_HIS_KILLWHO) ? &me : sptr, "Killed (%s %s)", - feature_bool(FEAT_HIS_KILLWHO) ? + feature_bool(FEAT_HIS_KILLWHO) ? feature_str(FEAT_HIS_SERVERNAME) : cli_name(sptr), msg); } /* - * ms_kill - server message handler template + * ms_kill - server message handler * * NOTE: IsServer(cptr) == true; * @@ -227,7 +227,7 @@ int ms_kill(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) } /* - * mo_kill - oper message handler template + * mo_kill - oper message handler * * NOTE: IsPrivileged(sptr), IsAnOper(sptr) == true * IsServer(cptr), IsServer(sptr) == false @@ -258,7 +258,7 @@ int mo_kill(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (!(victim = FindClient(user))) { /* - * If the user has recently changed nick, we automaticly + * If the user has recently changed nick, we automatically * rewrite the KILL for this new nickname--this keeps * servers in synch when nick change and kill collide */ @@ -282,7 +282,7 @@ int mo_kill(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (!MyConnect(victim) && !HasPriv(sptr, PRIV_KILL)) { - sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :Nick %s isnt on your server", + sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :Nick %s isn't on your server", sptr, cli_name(victim)); return 0; }