Created
May 26, 2014 10:59
-
-
Save w1lla/669a345cb2b3598b71ee to your computer and use it in GitHub Desktop.
irc bot classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function joinChannels() { | |
$key = ""; | |
if (!empty($this->config->channelKey)) { | |
$key = " " . $this->config->channelKey; | |
$channel = $this->config->channel . $key; | |
$this->sendCommand("JOIN", $channel); | |
$this->isJoinedToChannel = true; | |
} | |
else{ | |
$channel = $this->config->channel; | |
$this->sendCommand("JOIN", $channel); | |
$this->isJoinedToChannel = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment