mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
printtext(): you can now specify server target with tag name instead of
record. This is useful with DCC chats when you know the initial server tag but the server might be already disconnected. So what this means is that you now get ~/irclogs/ircnet/=nick.log instead of ~/irclogs/=nick.log :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2388 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
82b0c081e2
commit
cf83236346
8 changed files with 118 additions and 56 deletions
|
|
@ -6,9 +6,11 @@
|
|||
|
||||
void printformat_module(const char *module, void *server, const char *target, int level, int formatnum, ...);
|
||||
void printformat_module_window(const char *module, WINDOW_REC *window, int level, int formatnum, ...);
|
||||
void printformat_module_dest(const char *module, TEXT_DEST_REC *dest, int formatnum, ...);
|
||||
|
||||
void printformat_module_args(const char *module, void *server, const char *target, int level, int formatnum, va_list va);
|
||||
void printformat_module_window_args(const char *module, WINDOW_REC *window, int level, int formatnum, va_list va);
|
||||
void printformat_module_dest_args(const char *module, TEXT_DEST_REC *dest, int formatnum, va_list va);
|
||||
|
||||
void printtext(void *server, const char *target, int level, const char *text, ...);
|
||||
void printtext_string(void *server, const char *target, int level, const char *text);
|
||||
|
|
@ -38,6 +40,8 @@ void printtext_deinit(void);
|
|||
printformat_module(MODULE_NAME, server, target, level, ##formatnum)
|
||||
# define printformat_window(window, level, formatnum...) \
|
||||
printformat_module_window(MODULE_NAME, window, level, ##formatnum)
|
||||
# define printformat_dest(dest, formatnum...) \
|
||||
printformat_module_dest(MODULE_NAME, dest, ##formatnum)
|
||||
# define printformat_gui(formatnum...) \
|
||||
printformat_module_gui(MODULE_NAME, ##formatnum)
|
||||
#elif defined (_ISOC99_SOURCE)
|
||||
|
|
@ -46,6 +50,8 @@ void printtext_deinit(void);
|
|||
printformat_module(MODULE_NAME, server, target, level, formatnum, __VA_ARGS__)
|
||||
# define printformat_window(window, level, formatnum, ...) \
|
||||
printformat_module_window(MODULE_NAME, window, level, formatnum, __VA_ARGS__)
|
||||
# define printformat_dest(dest, formatnum, ...) \
|
||||
printformat_module_dest(MODULE_NAME, dest, formatnum, __VA_ARGS__)
|
||||
# define printformat_gui(formatnum, ...) \
|
||||
printformat_module_gui(MODULE_NAME, formatnum, __VA_ARGS__)
|
||||
#else
|
||||
|
|
@ -78,6 +84,20 @@ void printformat_window(WINDOW_REC *window, int level, int formatnum, ...)
|
|||
va_end(va);
|
||||
}
|
||||
|
||||
#ifdef G_CAN_INLINE
|
||||
G_INLINE_FUNC
|
||||
#else
|
||||
static
|
||||
#endif
|
||||
void printformat_dest(TEXT_DEST_REC *dest, int formatnum, ...)
|
||||
{
|
||||
va_list va;
|
||||
|
||||
va_start(va, formatnum);
|
||||
printformat_module_dest_args(MODULE_NAME, dest, formatnum, va);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
#ifdef G_CAN_INLINE
|
||||
G_INLINE_FUNC
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue