diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-17 19:05:22 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-17 19:05:22 +0100 |
commit | daa9e027e8c8d1bc91e104dba985d5d44fef8c77 (patch) | |
tree | d501c4f5af8d240aa533dedce8f5793079c7e959 /ipc.c | |
parent | f4a59408250b76173418fad090d4623e5300c90f (diff) |
LILO/WALLOPS commands now check if the receiving user logged in yet.
Diffstat (limited to 'ipc.c')
-rw-r--r-- | ipc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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] ); |