summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2016-04-22 10:17:41 -0500
committerAdam <adam@sigterm.info>2016-04-22 10:17:41 -0500
commit0143dafe518dfe1ec030e80091d150d1d30f0e26 (patch)
tree5ef35b8aa3667e98c8902bf6e5f0766ef31c0c5d
parenta2dbcc620e92b0af418cdd03b736bf9ca54cf19b (diff)
parent1d198da4369a7eb7efa7775cc97041d2a870a86a (diff)
Merge pull request #165 from sketchni/patch-1
Add the notice method to XMLRPC.
-rw-r--r--docs/XMLRPC/xmlrpc.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/XMLRPC/xmlrpc.php b/docs/XMLRPC/xmlrpc.php
index c8cc50008..e57a2f145 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.