X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusers.h;h=c699ebab7551cc83ce17521c833c0edc3912b920;hb=e91c34ae364824d0b74c224c13d74534a65f2402;hp=6a61b2bc1b5015eca081fa3caf774e7f92d20b0b;hpb=458168b575663dc7bdb71c651c30320752f22e41;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/users.h b/include/users.h index 6a61b2bc1..c699ebab7 100644 --- a/include/users.h +++ b/include/users.h @@ -501,10 +501,16 @@ class CoreExport User : public Extensible */ void WriteServ(const char* text, ...) CUSTOM_PRINTF(2, 3); + /** Sends a command to this user. + * @param command The command to be sent. + * @param text The message to send. + */ + void WriteCommand(const char* command, const std::string& text); + /** Sends a server notice to this user. * @param text The contents of the message to send. */ - void WriteNotice(const std::string& text); + void WriteNotice(const std::string& text) { this->WriteCommand("NOTICE", ":" + text); } void WriteNumeric(unsigned int numeric, const char* text, ...) CUSTOM_PRINTF(3, 4);