]> jfr.im git - irc/blitzed-org/bopm.git/commitdiff
irc.c: Fixed segfault if nickserv ident isnt defined in conf
authorstrtok <redacted>
Sun, 27 Jan 2002 04:23:27 +0000 (04:23 +0000)
committerstrtok <redacted>
Sun, 27 Jan 2002 04:23:27 +0000 (04:23 +0000)
irc.c

diff --git a/irc.c b/irc.c
index 900520ad5231b848d84dc5f2578f2ed80b862822..0cab288ae886e55a7a82d6f363eab64aa255727f 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -469,7 +469,8 @@ void irc_parse()
             
     if(!strcasecmp(token[1], "NOTICE") && strchr(token[0], '@'))
       {
-          if(!strcasecmp(strtok(token[0] + 1, "!") , "NICKSERV"))
+           
+          if(CONF_NICKSERV_IDENT && !strcasecmp(strtok(token[0] + 1, "!") , "NICKSERV"))
             {
                   time(&present);
                   if(((int) present - (int) IRC_NICKSERV_LAST) >= 10) /* If last used notice was greater than/equal to 10 sec ago */