Added printtext_string() which works like printtext(), except it prints

text from a string, so that %s, %d, etc. don't work. Changed perl's
Irssi::print() use this instead as well as /HELP printer.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1072 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-05 08:30:01 +00:00 committed by cras
commit 86aa2d514d
6 changed files with 24 additions and 51 deletions

View file

@ -30,23 +30,15 @@ void
print(str, level=MSGLEVEL_CLIENTNOTICE)
char *str
int level;
PREINIT:
char *fixed;
CODE:
fixed = perl_fix_formats(str);
printtext(NULL, NULL, level, fixed);
g_free(fixed);
printtext_string(NULL, NULL, level, str);
void
print_window(str, level=MSGLEVEL_CLIENTNOTICE)
char *str
int level;
PREINIT:
char *fixed;
CODE:
fixed = perl_fix_formats(str);
printtext_window(active_win, level, fixed);
g_free(fixed);
printtext_window(active_win, level, str);
void
command(cmd, server=active_win->active_server, item=active_win->active)