mcabber/mcabber/utils.c
changeset 2309 e00ae0763468
parent 2283 6e1ead98930d
child 2338 6424627913be
equal deleted inserted replaced
2308:e8c8665c824e 2309:e00ae0763468
    49 
    49 
    50 #include "utils.h"
    50 #include "utils.h"
    51 #include "logprint.h"
    51 #include "logprint.h"
    52 #include "settings.h"
    52 #include "settings.h"
    53 #include "main.h"
    53 #include "main.h"
       
    54 #include "screen.h"
    54 
    55 
    55 static int DebugEnabled;
    56 static int DebugEnabled;
    56 static char *FName;
    57 static char *FName;
    57 
    58 
    58 //  jidtodisp(jid)
    59 //  jidtodisp(jid)
   935   else if (!ignore_case && !strncmp(str, word, strlen(word)))
   936   else if (!ignore_case && !strncmp(str, word, strlen(word)))
   936     return TRUE;
   937     return TRUE;
   937   return FALSE;
   938   return FALSE;
   938 }
   939 }
   939 
   940 
       
   941 //  mkcmdstr(cmd) returns a pointer to a const string with the command
       
   942 //  prefixed with COMMAND_CHAR.
       
   943 const char *mkcmdstr(const char *cmd)
       
   944 {
       
   945   static char fcmd[INPUTLINE_LENGTH+1];
       
   946 
       
   947   fcmd[0] = COMMAND_CHAR;
       
   948   fcmd[1] = 0;
       
   949 
       
   950   strncat(fcmd+1, cmd, INPUTLINE_LENGTH-1);
       
   951   return fcmd;
       
   952 }
       
   953 
   940 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2:  For Vim users... */
   954 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2:  For Vim users... */