diff src/protocols/irc/parse.c @ 10208:cbdce0acbbe6

[gaim-migrate @ 11330] This implements irc_ischannel for HEAD, and fixes /names committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 19 Nov 2004 16:42:07 +0000
parents 6ccd92a58cde
children 357d4fa1bfbe
line wrap: on
line diff
--- a/src/protocols/irc/parse.c	Fri Nov 19 06:24:50 2004 +0000
+++ b/src/protocols/irc/parse.c	Fri Nov 19 16:42:07 2004 +0000
@@ -366,6 +366,11 @@
         return result;
 }
 
+gboolean irc_ischannel(const char *string)
+{
+	return (string[0] == '#' || string[0] == '&');
+}
+
 char *irc_parse_ctcp(struct irc_conn *irc, const char *from, const char *to, const char *msg, int notice)
 {
 	GaimConnection *gc;