Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 436536 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/common/proto-irc.c (-1 / +33 lines)
Lines 45-50 irc_login (server *serv, char *user, char *realname) Link Here
45
{
45
{
46
	if (serv->password[0])
46
	if (serv->password[0])
47
		tcp_sendf (serv, "PASS %s\r\n", serv->password);
47
		tcp_sendf (serv, "PASS %s\r\n", serv->password);
48
	tcp_sendf (serv, "CAP LS\r\n");
48
49
49
	tcp_sendf (serv,
50
	tcp_sendf (serv,
50
				  "NICK %s\r\n"
51
				  "NICK %s\r\n"
Lines 1110-1115 process_named_msg (session *sess, char *type, char *word[], char *word_eol[]) Link Here
1110
		}
1111
		}
1111
	}
1112
	}
1112
1113
1114
	else if (len == 3)
1115
	{
1116
		guint32 t;
1117
1118
		t = WORDL((guint8)type[0], (guint8)type[1], (guint8)type[2], (guint8)type[3]);
1119
		switch (t)
1120
		{
1121
		case WORDL('C','A','P','\0'):
1122
			if (strncasecmp(word[4], "ACK", 3) == 0)
1123
			{
1124
				if (strncasecmp(word[5][0]==':' ? word[5]+1 : word[5],
1125
					"identify-msg", 12) == 0)
1126
				{
1127
					serv->have_idmsg = TRUE;
1128
					tcp_send_len(serv, "CAP END\r\n", 9);
1129
				}
1130
			}
1131
			else if (strncasecmp(word[4], "LS", 2) == 0)
1132
			{
1133
				if (strstr(word_eol[5], "identify-msg") != 0)
1134
					tcp_send_len(serv, "CAP REQ :identify-msg\r\n", 23);
1135
				else
1136
					tcp_send_len(serv, "CAP END\r\n", 9);
1137
			}
1138
			else if (strncasecmp(word[4], "NAK",3) == 0)
1139
			{
1140
				tcp_send_len(serv, "CAP END\r\n", 9);
1141
			}
1142
			return;
1143
		}
1144
	}
1145
1113
garbage:
1146
garbage:
1114
	/* unknown message */
1147
	/* unknown message */
1115
	PrintTextf (sess, "GARBAGE: %s\n", word_eol[1]);
1148
	PrintTextf (sess, "GARBAGE: %s\n", word_eol[1]);
1116
- 

Return to bug 436536