Skip to content

Commit

Permalink
- Reimplemented fully working capab support
Browse files Browse the repository at this point in the history
git-svn-id: svn://red.pomac.com/rage@85 55c13d69-e7e2-0310-b639-a4a306287c42
  • Loading branch information
pomac committed Sep 19, 2004
1 parent e039cb9 commit f8fba69
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trunk/src/common/modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,6 @@ run_005 (server * serv)

if((pre = get_isupport(serv, "NETWORK")))
{
/* if (serv->networkname)
free (serv->networkname);
serv->networkname = strdup (parv[w] + 8);*/

if (serv->server_session->type == SESS_SERVER)
{
safe_strcpy (serv->server_session->channel, pre, CHANLEN);
Expand Down Expand Up @@ -695,4 +691,8 @@ run_005 (server * serv)
serv->bad_nick_prefixes = strdup (pre);
}
}

if(isupport(serv, "CAPAB")) /* after this we get a 290 numeric reply */
tcp_send_len (serv, "CAPAB IDENTIFY-MSG\r\n", 20);

}
17 changes: 17 additions & 0 deletions trunk/src/common/proto-irc.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,23 @@ irc_numeric(session *sess, int parc, char *parv[])
case RPL_ISUPPORT: /* 005 */
inbound_005(sess->server,parc,parv);
break;
case 290: /* CAPAB reply */
{
int i;

/* initalize variables */
sess->server->have_idmsg = FALSE;

for (i = 2; i < parc; i++)
{
if (strcmp(parv[2], "IDENTIFY-MSG"))
{
sess->server->have_idmsg = TRUE;
break;
}
}
break;
}
case RPL_AWAY: /* 301 */
inbound_away(sess->server,parv[3],parv[4]);
break;
Expand Down

0 comments on commit f8fba69

Please sign in to comment.