changeset 2633:b740a33875c3

[gaim-migrate @ 2646] i eat dog food.... i mean, i make dog food... i mean, i don't have a dog, but i eat its food... no wait. i tried to do a whois on an op. that was fun. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 28 Oct 2001 09:11:51 +0000
parents 11badfae115c
children 7a3f7aebd4e5
files src/protocols/irc/irc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sun Oct 28 06:26:34 2001 +0000
+++ b/src/protocols/irc/irc.c	Sun Oct 28 09:11:51 2001 +0000
@@ -1388,6 +1388,11 @@
 	struct irc_data *idata = gc->proto_data;
 	char buf[IRC_BUF_LEN];
 
+	if (*who == '@')
+		who++;
+	if (*who == '+')
+		who++;
+
 	g_snprintf(buf, sizeof(buf), "WHOIS %s\r\n", who);
 	irc_write(idata->fd, buf, strlen(buf));
 }