From daa9e027e8c8d1bc91e104dba985d5d44fef8c77 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 17 Jan 2006 19:05:22 +0100 Subject: LILO/WALLOPS commands now check if the receiving user logged in yet. --- ipc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipc.c') diff --git a/ipc.c b/ipc.c index 5d6790f0..5e7b7821 100644 --- a/ipc.c +++ b/ipc.c @@ -82,6 +82,9 @@ static int ipc_child_cmd_wallops( irc_t *data, char **cmd ) { irc_t *irc = data; + if( irc->status < USTATUS_LOGGED_IN ) + return 1; + if( strchr( irc->umode, 'w' ) ) irc_write( irc, ":%s WALLOPS :%s", irc->myhost, cmd[1] ); @@ -92,6 +95,9 @@ static int ipc_child_cmd_lilo( irc_t *data, char **cmd ) { irc_t *irc = data; + if( irc->status < USTATUS_LOGGED_IN ) + return 1; + if( strchr( irc->umode, 's' ) ) irc_write( irc, ":%s NOTICE %s :%s", irc->myhost, irc->nick, cmd[1] ); -- cgit v1.2.3