aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
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] );