]> jfr.im git - solanum.git/blobdiff - librb/src/helper.c
ircd: send tags on every message
[solanum.git] / librb / src / helper.c
index 0e653deaf04e9dcc996b3058f716aa6f5a5041bb..3a39ca106e73f4eed1c5c493d9e3a505d59c3c97 100644 (file)
@@ -19,8 +19,8 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: helper.c 26092 2008-09-19 15:13:52Z androsyn $
  */
+
 #include <librb_config.h>
 #include <rb_lib.h>
 #include <commio-int.h>
@@ -214,8 +214,10 @@ void
 rb_helper_write_queue(rb_helper *helper, const char *format, ...)
 {
        va_list ap;
+       rb_strf_t strings = { .format = format, .format_args = &ap, .next = NULL };
+
        va_start(ap, format);
-       rb_linebuf_putmsg(&helper->sendq, format, &ap, NULL);
+       rb_linebuf_put(&helper->sendq, &strings);
        va_end(ap);
 }
 
@@ -230,9 +232,12 @@ void
 rb_helper_write(rb_helper *helper, const char *format, ...)
 {
        va_list ap;
+       rb_strf_t strings = { .format = format, .format_args = &ap, .next = NULL };
+
        va_start(ap, format);
-       rb_linebuf_putmsg(&helper->sendq, format, &ap, NULL);
+       rb_linebuf_put(&helper->sendq, &strings);
        va_end(ap);
+
        rb_helper_write_flush(helper);
 }