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:
Timo Sirainen 2002-02-04 04:27:45 +00:00 committed by cras
commit cf83236346
8 changed files with 118 additions and 56 deletions

View file

@ -43,8 +43,8 @@ static int sending_print_starting;
static void print_line(TEXT_DEST_REC *dest, const char *text);
static void printformat_module_dest(const char *module, TEXT_DEST_REC *dest,
int formatnum, va_list va)
void printformat_module_dest_args(const char *module, TEXT_DEST_REC *dest,
int formatnum, va_list va)
{
char *arglist[MAX_FORMAT_PARAMS];
char buffer[DEFAULT_FORMAT_ARGLIST_SIZE];
@ -74,6 +74,16 @@ static void printformat_module_dest(const char *module, TEXT_DEST_REC *dest,
g_free(str);
}
void printformat_module_dest(const char *module, TEXT_DEST_REC *dest,
int formatnum, ...)
{
va_list va;
va_start(va, formatnum);
printformat_module_dest_args(module, dest, formatnum, va);
va_end(va);
}
void printformat_module_args(const char *module, void *server,
const char *target, int level,
int formatnum, va_list va)
@ -81,7 +91,7 @@ void printformat_module_args(const char *module, void *server,
TEXT_DEST_REC dest;
format_create_dest(&dest, server, target, level, NULL);
printformat_module_dest(module, &dest, formatnum, va);
printformat_module_dest_args(module, &dest, formatnum, va);
}
void printformat_module(const char *module, void *server, const char *target,
@ -100,7 +110,7 @@ void printformat_module_window_args(const char *module, WINDOW_REC *window,
TEXT_DEST_REC dest;
format_create_dest(&dest, NULL, NULL, level, window);
printformat_module_dest(module, &dest, formatnum, va);
printformat_module_dest_args(module, &dest, formatnum, va);
}
void printformat_module_window(const char *module, WINDOW_REC *window,