Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
             }
         }
     }
 }
Beispiel #3
0
 private function onBoardServerTimer(array $entries, Dog_Forum $board, Dog_Server $server)
 {
     foreach ($server->getChannels() as $channel) {
         if ($this->isEnabled($server, $channel)) {
             $this->onBoardServerChannelTimer($entries, $board, $server, $channel);
         }
     }
 }