21 namespace Erebot\Event\Match;
31 class Source implements \Erebot\Interfaces\Event\Match
73 throw new \Erebot\InvalidValueException(
'Not a valid nickname');
79 public function match(\Erebot\Interfaces\Event\Base\Generic $event)
81 if (!($event instanceof \Erebot\Interfaces\Event\Base\
Source)) {
85 if ($this->source === null) {
89 $collator = $event->getConnection()->getCollator();
93 (string) $this->source
$source
Source to use in the comparison, as a string.
A filter which matches when the source of the event equals some predefined value. ...