mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
Fixed string format bug when displaying string thru plugin script API
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2007-04-24
|
||||
ChangeLog - 2007-04-25
|
||||
|
||||
|
||||
Version 0.2.5 (under dev!):
|
||||
* fixed string format bug when displaying string thru plugin script API
|
||||
* added /reconnect command (task #5448)
|
||||
* added "-all" option for /connect and /disconnect commands (task #6232)
|
||||
* improved nick completion: completion with last speakers first and self
|
||||
|
||||
@@ -326,7 +326,7 @@ weechat_script_print (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print (plugin, server, channel, (buf2) ? buf2 : buf);
|
||||
plugin->print (plugin, server, channel, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -350,7 +350,7 @@ weechat_script_print_server (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print_server (plugin, (buf2) ? buf2 : buf);
|
||||
plugin->print_server (plugin, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -374,7 +374,7 @@ weechat_script_print_infobar (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print_infobar (plugin, time_displayed, (buf2) ? buf2 : buf);
|
||||
plugin->print_infobar (plugin, time_displayed, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -398,7 +398,7 @@ weechat_script_log (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->log (plugin, server, channel, (buf2) ? buf2 : buf);
|
||||
plugin->log (plugin, server, channel, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2007-04-24
|
||||
ChangeLog - 2007-04-25
|
||||
|
||||
|
||||
Version 0.2.5 (under dev!):
|
||||
* fixed string format bug when displaying string thru plugin script API
|
||||
* added /reconnect command (task #5448)
|
||||
* added "-all" option for /connect and /disconnect commands (task #6232)
|
||||
* improved nick completion: completion with last speakers first and self
|
||||
|
||||
@@ -326,7 +326,7 @@ weechat_script_print (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print (plugin, server, channel, (buf2) ? buf2 : buf);
|
||||
plugin->print (plugin, server, channel, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -350,7 +350,7 @@ weechat_script_print_server (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print_server (plugin, (buf2) ? buf2 : buf);
|
||||
plugin->print_server (plugin, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -374,7 +374,7 @@ weechat_script_print_infobar (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->print_infobar (plugin, time_displayed, (buf2) ? buf2 : buf);
|
||||
plugin->print_infobar (plugin, time_displayed, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
@@ -398,7 +398,7 @@ weechat_script_log (t_weechat_plugin *plugin,
|
||||
|
||||
buf2 = (script->charset && script->charset[0]) ?
|
||||
plugin->iconv_to_internal (plugin, script->charset, buf) : NULL;
|
||||
plugin->log (plugin, server, channel, (buf2) ? buf2 : buf);
|
||||
plugin->log (plugin, server, channel, "%s", (buf2) ? buf2 : buf);
|
||||
if (buf2)
|
||||
free (buf2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user