aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-17 19:05:22 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-17 19:05:22 +0100
commitdaa9e027e8c8d1bc91e104dba985d5d44fef8c77 (patch)
treed501c4f5af8d240aa533dedce8f5793079c7e959 /ipc.c
parentf4a59408250b76173418fad090d4623e5300c90f (diff)
LILO/WALLOPS commands now check if the receiving user logged in yet.
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c6
1 files changed, 6 insertions, 0 deletions
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] );