mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
format
This commit is contained in:
parent
0bcff291e9
commit
0355ed0bea
@ -211,14 +211,16 @@ static void event_eban_list(IRC_SERVER_REC *server, const char *data)
|
|||||||
|
|
||||||
channel = get_visible_target(server, channel);
|
channel = get_visible_target(server, channel);
|
||||||
printformat(server, channel, MSGLEVEL_CRAP,
|
printformat(server, channel, MSGLEVEL_CRAP,
|
||||||
*setby == '\0' ? IRCTXT_EBANLIST : IRCTXT_EBANLIST_LONG,
|
*setby == '\0' ? IRCTXT_EBANLIST : IRCTXT_EBANLIST_LONG, channel, ban, setby,
|
||||||
channel, ban, setby, timestr, ago);
|
timestr, ago);
|
||||||
|
|
||||||
g_free(timestr);
|
g_free(timestr);
|
||||||
g_free(params);
|
g_free(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_quiet_list(IRC_SERVER_REC *server, const char *channel, char *ban, char *setby, char *tims) {
|
static void do_quiet_list(IRC_SERVER_REC *server, const char *channel, char *ban, char *setby,
|
||||||
|
char *tims)
|
||||||
|
{
|
||||||
char *timestr, *ago;
|
char *timestr, *ago;
|
||||||
|
|
||||||
timestr = my_asctime((time_t) atoll(tims));
|
timestr = my_asctime((time_t) atoll(tims));
|
||||||
@ -239,8 +241,7 @@ static void event_quiet_list(IRC_SERVER_REC *server, const char *data)
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 6, NULL, &channel,
|
params = event_get_params(data, 6, NULL, &channel, NULL, &ban, &setby, &tims);
|
||||||
NULL, &ban, &setby, &tims);
|
|
||||||
do_quiet_list(server, channel, ban, setby, tims);
|
do_quiet_list(server, channel, ban, setby, tims);
|
||||||
|
|
||||||
g_free(params);
|
g_free(params);
|
||||||
@ -285,8 +286,8 @@ static void event_invite_list(IRC_SERVER_REC *server, const char *data)
|
|||||||
|
|
||||||
channel = get_visible_target(server, channel);
|
channel = get_visible_target(server, channel);
|
||||||
printformat(server, channel, MSGLEVEL_CRAP,
|
printformat(server, channel, MSGLEVEL_CRAP,
|
||||||
*setby == '\0' ? IRCTXT_INVITELIST : IRCTXT_INVITELIST_LONG,
|
*setby == '\0' ? IRCTXT_INVITELIST : IRCTXT_INVITELIST_LONG, channel, invite,
|
||||||
channel, invite, setby, timestr, ago);
|
setby, timestr, ago);
|
||||||
|
|
||||||
g_free(timestr);
|
g_free(timestr);
|
||||||
g_free(params);
|
g_free(params);
|
||||||
@ -763,8 +764,7 @@ static void event_hybrid_quiet_list(IRC_SERVER_REC *server, const char *data)
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 5, NULL, &channel,
|
params = event_get_params(data, 5, NULL, &channel, &ban, &setby, &tims);
|
||||||
&ban, &setby, &tims);
|
|
||||||
|
|
||||||
if (*tims == '\0') {
|
if (*tims == '\0') {
|
||||||
/* probably not a quiet list */
|
/* probably not a quiet list */
|
||||||
|
Loading…
Reference in New Issue
Block a user