if (strtolower(substr($msgwithoutident, 0, 8)) == 'channels') { $msgwithoutcommand = substr($msgwithoutident, 9, strlen($msgwithoutident)-9); $vic = $msgwithoutcommand; $att = $data->nick; $channels = implode(', ', $chans); $irc->message(SMARTIRC_TYPE_CHANNEL, $recip, "I'm currently in ".$channels.", ".$data->nick."."); $valid_function = true; }