In core/module-formats.h: IRCTXT_ -> TXT_

Added "message irc ctcp" signal to print CTCPs


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-07 19:42:59 +00:00 committed by cras
commit 1de2aade40
22 changed files with 344 additions and 328 deletions

View file

@ -204,7 +204,7 @@ static void cmd_lastlog(const char *data)
}
if ((flags & LASTLOG_FLAG_NOHEADERS) == 0)
printformat(NULL, NULL, MSGLEVEL_LASTLOG, IRCTXT_LASTLOG_START);
printformat(NULL, NULL, MSGLEVEL_LASTLOG, TXT_LASTLOG_START);
if (flags & LASTLOG_FLAG_NEW_LAST)
startline = WINDOW_GUI(active_win)->lastlog_last_check;
@ -238,7 +238,7 @@ static void cmd_lastlog(const char *data)
}
if ((flags & LASTLOG_FLAG_NOHEADERS) == 0)
printformat(NULL, NULL, MSGLEVEL_LASTLOG, IRCTXT_LASTLOG_END);
printformat(NULL, NULL, MSGLEVEL_LASTLOG, TXT_LASTLOG_END);
WINDOW_GUI(active_win)->lastlog_last_check =
g_list_last(WINDOW_GUI(active_win)->bottom_startline);

View file

@ -478,7 +478,7 @@ static void cmd_window_grow(const char *data)
window->first_line -= count;
shrink_win->last_line -= count;
} else {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_WINDOW_TOO_SMALL);
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_WINDOW_TOO_SMALL);
return;
}
}
@ -496,7 +496,7 @@ static void cmd_window_shrink(const char *data)
window = WINDOW_GUI(active_win)->parent;
if (window->lines-count < WINDOW_MIN_SIZE) {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_WINDOW_TOO_SMALL);
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_WINDOW_TOO_SMALL);
return;
}
@ -579,7 +579,7 @@ static void cmd_window_hide(const char *data)
WINDOW_REC *window;
if (mainwindows->next == NULL) {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_CANT_HIDE_LAST);
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_CANT_HIDE_LAST);
return;
}

View file

@ -1,13 +1,13 @@
#include "formats.h"
enum {
IRCTXT_MODULE_NAME,
TXT_MODULE_NAME,
IRCTXT_LASTLOG_START,
IRCTXT_LASTLOG_END,
TXT_LASTLOG_START,
TXT_LASTLOG_END,
IRCTXT_WINDOW_TOO_SMALL,
IRCTXT_CANT_HIDE_LAST
TXT_WINDOW_TOO_SMALL,
TXT_CANT_HIDE_LAST
};
extern FORMAT_REC gui_text_formats[];