From ec3eb38640f74b78588d50004f5459f8d210c6b4 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Thu, 8 Oct 2015 12:50:10 +0200 Subject: [PATCH] Bitch if trying to beep yourself --- cmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd.c b/cmd.c index e2264d5..5a2aaad 100644 --- a/cmd.c +++ b/cmd.c @@ -112,6 +112,10 @@ icb_cmd_beep(struct icb_session *is, char *arg) icb_status(is, STATUS_NOTIFY, "%s is not signed on", whom); return; } + if (s == is) { + icb_error(is, "Very funny... Not!"); + return; + } if (ISSETF(s->flags, ICB_SF_NOBEEP | ICB_SF_NOBEEP2)) { icb_error(is, "User has nobeep enabled");