only use the user-greeting if it really exists
authorpk910 <philipp@zoelle1.de>
Wed, 21 Sep 2011 13:45:44 +0000 (15:45 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 21 Sep 2011 13:45:44 +0000 (15:45 +0200)
event_neonserv_join.c

index 3f6d5d3be9a40f4aaabd02326773ba1858fe064d..25f6cf6f5d917cb08f805ea719d1b280cd4faeeb 100644 (file)
@@ -73,7 +73,7 @@ static void neonserv_event_join_async1(struct ClientSocket *client, struct ChanU
     //GREETING
     char greeting[MAXLEN];
     int greetingPos = 0;
-    char *a, *b = (chanuserrow ? row[2] : row[1]);
+    char *a, *b = (chanuserrow && row[2] ? row[2] : row[1]);
     do {
         if(!b) break;
         a = strstr(b, "$");