mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Server parameter is sent now too with /WHO, though the format itself wasn't changed. patch by peder.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2282 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
db907c209f
commit
92933dace3
@ -97,11 +97,12 @@ static void event_end_of_names(IRC_SERVER_REC *server, const char *data)
|
||||
static void event_who(IRC_SERVER_REC *server, const char *data)
|
||||
{
|
||||
char *params, *nick, *channel, *user, *host, *stat, *realname, *hops;
|
||||
char *serv;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
params = event_get_params(data, 8, NULL, &channel, &user,
|
||||
&host, NULL, &nick, &stat, &realname);
|
||||
&host, &serv, &nick, &stat, &realname);
|
||||
|
||||
/* split hops/realname */
|
||||
hops = realname;
|
||||
@ -110,7 +111,7 @@ static void event_who(IRC_SERVER_REC *server, const char *data)
|
||||
if (realname > hops) realname[-1] = '\0';
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_WHO,
|
||||
channel, nick, stat, hops, user, host, realname);
|
||||
channel, nick, stat, hops, user, host, realname, serv);
|
||||
|
||||
g_free(params);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ FORMAT_REC fecommon_irc_formats[] = {
|
||||
{ "end_of_whois", "End of WHOIS", 1, { 0 } },
|
||||
{ "end_of_whowas", "End of WHOWAS", 1, { 0 } },
|
||||
{ "whois_not_found", "There is no such nick $0", 1, { 0 } },
|
||||
{ "who", "{channelhilight $[-10]0} %|{nick $[!9]1} $[!3]2 $[!2]3 $4@$5 {comment {hilight $6}}", 7, { 0, 0, 0, 0, 0, 0, 0 } },
|
||||
{ "who", "{channelhilight $[-10]0} %|{nick $[!9]1} $[!3]2 $[!2]3 $4@$5 {comment {hilight $6}}", 8, { 0, 0, 0, 0, 0, 0, 0, 0 } },
|
||||
{ "end_of_who", "End of /WHO list", 1, { 0 } },
|
||||
|
||||
/* ---- */
|
||||
|
Loading…
Reference in New Issue
Block a user