summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index fcf01e004..a1136e321 100644
--- a/include/users.h
+++ b/include/users.h
@@ -90,5 +90,15 @@ class User
/** Updates the realname of the user record.
*/
void SetRealname(const std::string &realname);
+
+ /**
+ * Send a message (notice or privmsg, depending on settings) to a user
+ * @param source Sender nick
+ * @param fmt Format of the Message
+ * @param ... any number of parameters
+ * @return void
+ */
+ void SendMessage(const char *source, const char *fmt, ...);
+ void SendMessage(const char *source, const std::string &msg);
};