Allow tab characters with /say_to -f
authorMikael Berthe <mikael@lilotux.net>
Sat, 12 Apr 2008 13:49:18 +0200
changeset 1462 2b43d89a10bb
parent 1461 8fa24a6d1a93
child 1463 477581e3b95e
Allow tab characters with /say_to -f (Reported by Myhailo Danylenko)
mcabber/src/commands.c
--- a/mcabber/src/commands.c	Sat Apr 12 13:35:03 2008 +0200
+++ b/mcabber/src/commands.c	Sat Apr 12 13:49:18 2008 +0200
@@ -1383,13 +1383,13 @@
   for (p = msgbuf ; *p ; p++) {
     if (utf8_mode) {
       if (p == next_utf8_char) {
-        if (!iswprint(get_char(p)) && *p != '\n')
+        if (!iswprint(get_char(p)) && *p != '\n' && *p != '\t')
           break;
         next_utf8_char = next_char(p);
       }
     } else {
       unsigned char sc = *p;
-      if (!iswprint(sc) && sc != '\n')
+      if (!iswprint(sc) && sc != '\n' && sc != '\t')
         break;
     }
   }