public static function sendServerMessage(Dog_Server $server, $message) { foreach ($server->getChannels() as $chan) { $chan instanceof Dog_Channel; if (!Dog_Conf_Mod_Chan::isModuleDisabled('Shadowlamb', $chan->getID())) { $chan->sendPRIVMSG($message); } } }
public static function onQuit(DOGMOD_QuitJoin $QUITJOIN, Dog_Server $server, Dog_User $user) { $noteworthy = $QUITJOIN->getConfig('noteworthy', 's'); foreach ($server->getChannels() as $channel) { $channel instanceof Dog_Channel; if ($channel->getUserByID($user->getID()) !== false) { if (!Dog_Conf_Mod_Chan::isModuleDisabled('QuitJoin', $channel->getID())) { self::onQuitChannel($QUITJOIN, $server, $channel, $user, $noteworthy); } } } }
public function isDisabled(Dog_Server $server, $channel) { $defs = $this->isServerDefaultEnabled() ? '0' : '1'; $defc = $this->isChannelDefaultEnabled() ? '0' : '1'; $mod = $this->getName(); return Dog_Conf_Mod::isDisabled($mod, '0') || Dog_Conf_Mod_Serv::isModuleDisabled($mod, $server->getID(), $defs) || $channel !== false && Dog_Conf_Mod_Chan::isModuleDisabled($mod, $channel->getID(), $defc); }