mcabber/src/commands.c
changeset 1126 771eb6aa2d41
parent 1100 2bef748356de
child 1130 b2040a7fb7fc
equal deleted inserted replaced
1125:2ac9bec53c37 1126:771eb6aa2d41
   365   for (p-- ; p>xpline && (*p == ' ') ; p--)
   365   for (p-- ; p>xpline && (*p == ' ') ; p--)
   366     *p = 0;
   366     *p = 0;
   367 
   367 
   368   // Command "quit"?
   368   // Command "quit"?
   369   if ((scr_get_multimode() != 2)
   369   if ((scr_get_multimode() != 2)
   370       && (!strncasecmp(xpline, mkcmdstr("quit"), strlen(mkcmdstr("quit")))))
   370       && (!strncasecmp(xpline, mkcmdstr("quit"), strlen(mkcmdstr("quit"))))) {
   371     if (!xpline[5] || xpline[5] == ' ')
   371     if (!xpline[5] || xpline[5] == ' ') {
       
   372       g_free(xpline);
   372       return 255;
   373       return 255;
       
   374     }
       
   375   }
   373 
   376 
   374   // If verbatim multi-line mode, we check if another /msay command is typed
   377   // If verbatim multi-line mode, we check if another /msay command is typed
   375   if ((scr_get_multimode() == 2)
   378   if ((scr_get_multimode() == 2)
   376       && (strncasecmp(xpline, mkcmdstr("msay "), strlen(mkcmdstr("msay "))))) {
   379       && (strncasecmp(xpline, mkcmdstr("msay "), strlen(mkcmdstr("msay "))))) {
   377     // It isn't an /msay command
   380     // It isn't an /msay command