Skip to contentSkip to conversation

Fix ampersand commands check

PATCH In review Andrzej Zaborowski 2 participants 2 messages Mar 31, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix ampersand commands check

Also remove a trailing tab.

---
 gatchat/gatserver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
gatchat/gatserver.c +2 -2
index 031e542..839ebe4 100644
@@ -570,9 +570,9 @@ static int get_basic_prefix_size(const char *buf)
 		/* All other cases it is a simple 1 character prefix */
 		return 1;
 	}
-	
+
 	if (buf[0] == '&') {
-		if (g_ascii_isalpha(buf[0] == FALSE))
+		if (g_ascii_isalpha(buf[1]) == FALSE)
 			return 0;
 
 		return 2;
Signature · 1 line
1.6.1
#1 lore raw

Hi Andrew,

Quoted 6 lines

Also remove a trailing tab.

---
 gatchat/gatserver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis