Format Channel URLs

closes #706
This commit is contained in:
TingPing 2013-08-07 06:14:30 -04:00
parent 1370a49742
commit 13bfd060b6
3 changed files with 20 additions and 0 deletions

View File

@ -678,6 +678,15 @@ process_numeric (session * sess, int n,
handle_mode (serv, word, word_eol, "", TRUE, tags_data);
break;
case 328: /* channel url */
sess = find_channel (serv, word[4]);
if (sess)
{
EMIT_SIGNAL_TIMESTAMP (XP_TE_CHANURL, sess, word[4], word[5] + 1,
NULL, NULL, 0, tags_data->timestamp);
}
break;
case 329:
sess = find_channel (serv, word[4]);
if (sess)

View File

@ -1359,6 +1359,11 @@ static char * const pevt_chanmodes_help[] = {
N_("Modes string"),
};
static char * const pevt_chanurl_help[] = {
N_("Channel Name"),
N_("URL"),
};
static char * const pevt_rawmodes_help[] = {
N_("Nickname"),
N_("Modes string"),

View File

@ -148,6 +148,12 @@ pevt_chanop_help
%C22*%O$t%C26$1%O gives channel operator status to %C18$2%O
2
Channel Url
XP_TE_CHANURL
pevt_chanurl_help
%C22*%O$tChannel %C22$1%O url: %C24$2
2
Channel Quiet
XP_TE_CHANQUIET
pevt_chanquiet_help