mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
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:
parent
3654085b14
commit
86aa2d514d
6 changed files with 24 additions and 51 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue