Don't log privmsg before 001
This commit is contained in:
parent
a1b84c67b1
commit
de0d75b181
10
src/irc.c
10
src/irc.c
@ -1439,15 +1439,17 @@ static int irc_kick(struct link_server *server, struct line *line)
|
||||
|
||||
static int irc_privmsg(struct link_server *server, struct line *line)
|
||||
{
|
||||
log_privmsg(LINK(server)->log, line->origin, line->elemv[1],
|
||||
line->elemv[2]);
|
||||
if (LINK(server)->s_state == IRCS_CONNECTED)
|
||||
log_privmsg(LINK(server)->log, line->origin, line->elemv[1],
|
||||
line->elemv[2]);
|
||||
return OK_COPY;
|
||||
}
|
||||
|
||||
static int irc_notice(struct link_server *server, struct line *line)
|
||||
{
|
||||
log_notice(LINK(server)->log, line->origin, line->elemv[1],
|
||||
line->elemv[2]);
|
||||
if (LINK(server)->s_state == IRCS_CONNECTED)
|
||||
log_notice(LINK(server)->log, line->origin, line->elemv[1],
|
||||
line->elemv[2]);
|
||||
return OK_COPY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user