function handle($notice)
{
$this->plugin->broadcastNotice($notice);
- if ($notice->is_local == Notice::LOCAL_PUBLIC ||
- $notice->is_local == Notice::LOCAL_NONPUBLIC) {
- $this->plugin->public_notice($notice);
+ if ($notice->isLocal()) {
+ $this->plugin->publicNotice($notice);
}
return true;
}