From 0377d937c5d1bf20fa0c29d4a41c7fd89502ab38 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:53:03 +0000 Subject: Remote user messaging fixes Add format string output to DumpText Fix PI->PushToClient prefixing issue Fix ENCAP routing to use SID rather than server name git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11658 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index 440b5f1b9..f16a1a40d 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -770,6 +770,12 @@ class CoreExport InspIRCd : public classbase */ void DumpText(User* user, const std::string &text); + /** Dump text to a user target (local or remote) + * @param user the user to dump the text to + * @param format the printf format string for the text to send + */ + void DumpText(User* user, const char* format, ...) CUSTOM_PRINTF(3, 4); + /** Check if the given nickmask matches too many users, send errors to the given user * @param nick A nickmask to match against * @param user A user to send error text to -- cgit v1.2.3