mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
added format_get_length() for getting length of text part in a format
string. gui_printtext() now works like printtext_string() so %s won't accidentally crash it. /SET prompt can now have %formats. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1273 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c8893c61ee
commit
4718edf055
8 changed files with 44 additions and 27 deletions
|
|
@ -43,6 +43,9 @@ typedef struct {
|
|||
|
||||
int format_find_tag(const char *module, const char *tag);
|
||||
|
||||
/* Return length of text part in string (ie. without % codes) */
|
||||
int format_get_length(const char *str);
|
||||
|
||||
char *format_get_text(const char *module, WINDOW_REC *window,
|
||||
void *server, const char *target,
|
||||
int formatnum, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue