diff options
author | Sketch <denverfreeburn@outlook.com> | 2016-04-20 15:41:23 +0100 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:58:51 -0400 |
commit | ca9e3e12987e2cfb5b7685a82309f8d3c0ca0d3c (patch) | |
tree | 78a6879c97936554a43e3e37b3b3ae962afc2a9d /docs | |
parent | 683cface5beeef959c6a972d16dd2e97cc7c6aa2 (diff) |
Add the notice method to XMLRPC.
(cherry picked from commit 1d198da4369a7eb7efa7775cc97041d2a870a86a)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/XMLRPC/xmlrpc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/XMLRPC/xmlrpc.php b/docs/XMLRPC/xmlrpc.php index 2b5645ca7..ba1290b03 100644 --- a/docs/XMLRPC/xmlrpc.php +++ b/docs/XMLRPC/xmlrpc.php @@ -113,6 +113,21 @@ class AnopeXMLRPC { return $this->run("channel", [$channel]); } + + /** + * Sent a notice to a user. + * Returns an array containing channel information, or an array of size one + * (just containing the name) if the channel does not exist + * + * @param $source + * @param $target + * @param $message + * @return array|null + */ + public function notice($source, $target, $message) + { + return $this->run("notice", [$source, $target, $message]); + } /** * Like channel(), but different. |