src/parse.c
changeset 22 b786b5f92a93
parent 21 138537d81dd1
child 23 1cd79bb84e9c
equal deleted inserted replaced
21:138537d81dd1 22:b786b5f92a93
   110         message->channel = message->user;
   110         message->channel = message->user;
   111 
   111 
   112     if (strstr (message->line, message->nick)) {
   112     if (strstr (message->line, message->nick)) {
   113         if (*message->line != '!') {
   113         if (*message->line != '!') {
   114             /*
   114             /*
   115              * DEAD - LOCK - CHECK
   115              * DEADLOCK-CHECK
   116              */
   116              */
   117             if (strcmp (message->user, message->nick)) {
   117             if (strcmp (message->user, message->nick)) {
   118                 snprintf (msg, 512, "PRIVMSG %s :%s, %s?\r\n", message->channel, gettext ("What's up"), message->user);
   118                 snprintf (msg, 512, "PRIVMSG %s :%s, %s?\r\n", message->channel, gettext ("What's up"), message->user);
   119                 if (counter++ > 3)
   119                 if (counter++ > 2)
   120                     return NULL;
   120                     return NULL;
   121                 return msg;
   121                 return msg;
   122             }
   122             }
   123             /*
       
   124              * DEAD - LOCK - CHECK ENDS
       
   125              */
       
   126         }
   123         }
   127         return NULL;
   124         return NULL;
   128     }
   125     }
   129 
   126 
   130     counter = 0;
   127     counter = 0;