Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/cmds.c @ 31534:a8cc50c2279f
Remove trailing whitespace
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 04 Jan 2011 06:55:30 +0000 |
parents | 91869ed3ba59 |
children | ec6371d4cae8 |
comparison
equal
deleted
inserted
replaced
31533:44f53d3fc54f | 31534:a8cc50c2279f |
---|---|
71 int irc_cmd_ctcp(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 71 int irc_cmd_ctcp(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
72 { | 72 { |
73 /* we have defined args as args[0] is target and args[1] is ctcp command */ | 73 /* we have defined args as args[0] is target and args[1] is ctcp command */ |
74 char *buf; | 74 char *buf; |
75 GString *string; | 75 GString *string; |
76 | 76 |
77 /* check if we have args */ | 77 /* check if we have args */ |
78 if (!args || !args[0] || !args[1]) | 78 if (!args || !args[0] || !args[1]) |
79 return 0; | 79 return 0; |
80 | 80 |
81 /* TODO:strip newlines or send each line as separate ctcp or something | 81 /* TODO:strip newlines or send each line as separate ctcp or something |
87 buf = irc_format(irc, "vn:", "PRIVMSG", args[0], string->str); | 87 buf = irc_format(irc, "vn:", "PRIVMSG", args[0], string->str); |
88 g_string_free(string,TRUE); | 88 g_string_free(string,TRUE); |
89 | 89 |
90 irc_send(irc, buf); | 90 irc_send(irc, buf); |
91 g_free(buf); | 91 g_free(buf); |
92 | 92 |
93 return 1; | 93 return 1; |
94 } | 94 } |
95 | 95 |
96 int irc_cmd_ctcp_action(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 96 int irc_cmd_ctcp_action(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
97 { | 97 { |
598 | 598 |
599 if (!args || !args[0]) | 599 if (!args || !args[0]) |
600 return 0; | 600 return 0; |
601 | 601 |
602 buf = irc_format(irc, "vn", "WHOWAS", args[0]); | 602 buf = irc_format(irc, "vn", "WHOWAS", args[0]); |
603 | 603 |
604 irc->whois.nick = g_strdup(args[0]); | 604 irc->whois.nick = g_strdup(args[0]); |
605 irc_send(irc, buf); | 605 irc_send(irc, buf); |
606 g_free(buf); | 606 g_free(buf); |
607 | 607 |
608 return 0; | 608 return 0; |