diff options
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-raw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c index 31af8efbd..01cb97d93 100644 --- a/src/plugins/irc/irc-raw.c +++ b/src/plugins/irc/irc-raw.c @@ -182,6 +182,9 @@ irc_raw_message_add_to_list (time_t date, const char *prefix, { struct t_irc_raw_message *new_raw_message; + if (!prefix || !message) + return NULL; + irc_raw_message_remove_old (); new_raw_message = malloc (sizeof (*new_raw_message)); |