# HG changeset patch # User Ethan Blanton # Date 1216672567 0 # Node ID bd0c0cffb6448eb252048b7272de4c62589b50ea # Parent dc359ea9eb9a24e9191c3dd3fa352d932bd5af71 Correct some IRC comments for /ctcp diff -r dc359ea9eb9a -r bd0c0cffb644 libpurple/protocols/irc/cmds.c --- 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)