diff --git a/include/msgbuf.h b/include/msgbuf.h index 7de796a0..64e481cd 100644 --- a/include/msgbuf.h +++ b/include/msgbuf.h @@ -68,6 +68,8 @@ int msgbuf_unparse(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int int msgbuf_unparse_fmt(char *buf, size_t buflen, struct MsgBuf *head, unsigned int capmask, const char *fmt, ...) AFP(5, 6); int msgbuf_vunparse_fmt(char *buf, size_t buflen, struct MsgBuf *head, unsigned int capmask, const char *fmt, va_list va); +void msgbuf_unparse_prefix(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int capmask); + static inline void msgbuf_init(struct MsgBuf *msgbuf) { diff --git a/ircd/msgbuf.c b/ircd/msgbuf.c index ac7609a7..c0444bb2 100644 --- a/ircd/msgbuf.c +++ b/ircd/msgbuf.c @@ -142,7 +142,7 @@ msgbuf_unparse_tags(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned in rb_strlcat(buf, " ", buflen); } -static void +void msgbuf_unparse_prefix(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int capmask) { int i;