]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed bug with empty irc_watched_channels
authorAkari <hetors.email@gmail.com>
Mon, 7 Feb 2011 16:30:26 +0000 (18:30 +0200)
committerAkari <hetors.email@gmail.com>
Mon, 7 Feb 2011 16:30:26 +0000 (18:30 +0200)
irc.c

diff --git a/irc.c b/irc.c
index 4e411dea77356d542344b380cd8d4736273aa2f9..3968dfd874591170cd6a6334c2fcc3f72573ca59 100755 (executable)
--- a/irc.c
+++ b/irc.c
@@ -698,6 +698,9 @@ qboolean Irc_IsWatchedChannel(const char* chan)
     int start, idx, len;
     char buffer[512];
     
+    if(NOTSET(irc_watched_channels))
+        return FALSE;
+    
     len = strlen(irc_watched_channels.string);
     start = 0;