1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 19:03:14 +02:00

Add the notice method to XMLRPC.

This commit is contained in:
Sketch
2016-04-20 15:41:23 +01:00
parent 8b6e17fe7e
commit 1d198da436
+15
View File
@@ -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.