mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Perl working again, better than ever (unless there's bugs :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@191 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9cbf26d519
commit
a5a66264de
43 changed files with 1510 additions and 1004 deletions
|
|
@ -807,23 +807,30 @@ static int sig_check_daychange(void)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void sig_gui_dialog(const char *type, const char *text)
|
||||
void printtext_multiline(void *server, const char *channel, int level, const char *format, const char *text)
|
||||
{
|
||||
char **lines, **tmp;
|
||||
|
||||
if (g_strcasecmp(type, "warning") == 0)
|
||||
type = _("%_Warning:%_ %s");
|
||||
else if (g_strcasecmp(type, "error") == 0)
|
||||
type = _("%_Error:%_ %s");
|
||||
else
|
||||
type = "%s";
|
||||
|
||||
lines = g_strsplit(text, "\n", -1);
|
||||
for (tmp = lines; *tmp != NULL; tmp++)
|
||||
printtext(NULL, NULL, MSGLEVEL_NEVER, type, *tmp);
|
||||
printtext(NULL, NULL, MSGLEVEL_NEVER, format, *tmp);
|
||||
g_strfreev(lines);
|
||||
}
|
||||
|
||||
static void sig_gui_dialog(const char *type, const char *text)
|
||||
{
|
||||
char *format;
|
||||
|
||||
if (g_strcasecmp(type, "warning") == 0)
|
||||
format = _("%_Warning:%_ %s");
|
||||
else if (g_strcasecmp(type, "error") == 0)
|
||||
format = _("%_Error:%_ %s");
|
||||
else
|
||||
format = "%s";
|
||||
|
||||
printtext_multiline(NULL, NULL, MSGLEVEL_NEVER, format, text);
|
||||
}
|
||||
|
||||
static void read_settings(void)
|
||||
{
|
||||
toggle_show_timestamps = settings_get_bool("toggle_show_timestamps");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue