src/irc.c
changeset 29 08ec6ddd6eea
parent 23 1cd79bb84e9c
child 33 56571d34d754
equal deleted inserted replaced
28:ef929533d040 29:08ec6ddd6eea
   250                     return "PONG";
   250                     return "PONG";
   251 #else
   251 #else
   252                     return NULL;
   252                     return NULL;
   253 #endif
   253 #endif
   254                 case ENOMEM:
   254                 case ENOMEM:
       
   255                     return "ENOMEM";
   255                 case ERROR:
   256                 case ERROR:
   256                     return command;
   257                     free (command);
       
   258                     return "ERROR";
   257                 case VERSION:
   259                 case VERSION:
   258                     if ((ptr = strchr (message->user, ' ')))
   260                     if ((ptr = strchr (message->user, ' ')))
   259                         *ptr = '\0';
   261                         *ptr = '\0';
   260                     return command;
   262                     return command;
   261                 case PRIVMSG:
   263                 case PRIVMSG: