mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
"default event" now resends "default event numeric" which gets handled by
the event_received() function.. I think now all those extra spaces showing up in places should be fixed :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2402 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2891a871b7
commit
747347c990
2 changed files with 10 additions and 9 deletions
|
|
@ -393,21 +393,13 @@ static void sig_whowas_event_end(IRC_SERVER_REC *server, const char *data,
|
|||
static void event_received(IRC_SERVER_REC *server, const char *data,
|
||||
const char *nick, const char *addr)
|
||||
{
|
||||
char *params, *cmd, *args, *ptr;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
if (!i_isdigit(*data)) {
|
||||
printtext(server, NULL, MSGLEVEL_CRAP, "%s", data);
|
||||
return;
|
||||
}
|
||||
|
||||
/* numeric event. */
|
||||
params = event_get_params(data, 3 | PARAM_FLAG_GETREST, &cmd, NULL, &args);
|
||||
ptr = strstr(args, " :");
|
||||
if (ptr != NULL) *(ptr+1) = ' ';
|
||||
printtext(server, NULL, MSGLEVEL_CRAP, "%s", args);
|
||||
g_free(params);
|
||||
signal_emit("default event numeric", 4, server, data, nick, addr);
|
||||
}
|
||||
|
||||
void fe_events_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue