Bitch if trying to beep yourself

This commit is contained in:
Mike Belopuhov 2015-10-08 12:50:10 +02:00
parent 8bcfd5086a
commit ec3eb38640

4
cmd.c
View File

@ -112,6 +112,10 @@ icb_cmd_beep(struct icb_session *is, char *arg)
icb_status(is, STATUS_NOTIFY, "%s is not signed on", whom); icb_status(is, STATUS_NOTIFY, "%s is not signed on", whom);
return; return;
} }
if (s == is) {
icb_error(is, "Very funny... Not!");
return;
}
if (ISSETF(s->flags, ICB_SF_NOBEEP | ICB_SF_NOBEEP2)) { if (ISSETF(s->flags, ICB_SF_NOBEEP | ICB_SF_NOBEEP2)) {
icb_error(is, "User has nobeep enabled"); icb_error(is, "User has nobeep enabled");