mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
changed /FORMAT default_event -> default_event_server (sorry for breaking
some themes, this is just so much better name for it :) and added a new default_event, which is the format for default numeric events from your current server. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2909 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6019a5cd15
commit
b532986e5b
3 changed files with 9 additions and 9 deletions
|
|
@ -808,6 +808,7 @@ static void print_event_received(IRC_SERVER_REC *server, const char *data,
|
|||
const char *nick, int target_param)
|
||||
{
|
||||
char *target, *args, *ptr;
|
||||
int format;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
|
|
@ -841,14 +842,11 @@ static void print_event_received(IRC_SERVER_REC *server, const char *data,
|
|||
g_memmove(ptr+1, ptr+2, strlen(ptr+1));
|
||||
}
|
||||
|
||||
if (nick == NULL || server->real_address == NULL ||
|
||||
strcmp(nick, server->real_address) == 0)
|
||||
printtext(server, target, MSGLEVEL_CRAP, "%s", args);
|
||||
else {
|
||||
printformat(server, target, MSGLEVEL_CRAP,
|
||||
IRCTXT_DEFAULT_EVENT, nick, args,
|
||||
current_server_event);
|
||||
}
|
||||
format = nick == NULL || server->real_address == NULL ||
|
||||
strcmp(nick, server->real_address) == 0 ?
|
||||
IRCTXT_DEFAULT_EVENT : IRCTXT_DEFAULT_EVENT_SERVER;
|
||||
printformat(server, target, MSGLEVEL_CRAP, format,
|
||||
nick, args, current_server_event);
|
||||
g_free(args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue