changeset 23584:bd0c0cffb644

Correct some IRC comments for /ctcp
author Ethan Blanton <elb@pidgin.im>
date Mon, 21 Jul 2008 20:36:07 +0000
parents dc359ea9eb9a
children d54e9afeac6a
files libpurple/protocols/irc/cmds.c
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/cmds.c	Mon Jul 21 20:33:29 2008 +0000
+++ b/libpurple/protocols/irc/cmds.c	Mon Jul 21 20:36:07 2008 +0000
@@ -79,8 +79,7 @@
 		return 0;
 
 	/* TODO:strip newlines or send each line as separate ctcp or something
-	 * actually, this shouldn't be done here but somewhere else since irc should support escaping newlines
-	 * utf8 could pose additional problems here since it allows some of weird chars (NULL) to be part of bigger chars */ 
+	 * actually, this shouldn't be done here but somewhere else since irc should support escaping newlines */
 
 	string = g_string_new(args[1]);
 	g_string_prepend_c (string,'\001');
@@ -88,17 +87,10 @@
 	buf = irc_format(irc, "vn:", "PRIVMSG", args[0], string->str);
 	g_string_free(string,TRUE);
 
-	/* check if line is small enough to send
-	 * XXX: strlen will prolly not work for UTF-8 */
-	if (strlen(buf) >= 512)
-		return 0;
-
 	irc_send(irc, buf);
 	g_free(buf);
 	
-
 	return 1;
-	
 }
 
 int irc_cmd_ctcp_action(struct irc_conn *irc, const char *cmd, const char *target, const char **args)