changeset 1462:2b43d89a10bb

Allow tab characters with /say_to -f (Reported by Myhailo Danylenko)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 12 Apr 2008 13:49:18 +0200
parents 8fa24a6d1a93
children 477581e3b95e
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }
   }