Added /channel as well as /focused

master
Pentium44 2020-12-09 23:26:34 -08:00
parent e534d1523b
commit 313d96c261
1 changed files with 6 additions and 2 deletions

View File

@ -75,7 +75,10 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni
$line .= "JOIN " . trim($cmd[1]) . "\n"; // set for push
//$logline .= "<tr><td class='userinfo'><b>$nick</b>:</td><td>Joining " . $cmd[1] . "</td></tr>\n"; // push to client
$_SESSION['idleirc-channel'] = trim($cmd[1]);
} else if ($cmd[0]=="/nick") {
} else if ($cmd[0]=="/channel" || $cmd[0]=="/focused") {
doLog("$username: checking focused channel: " . $channel);
$logline .= "<tr><td class='userinfo'><span style='color:$ipcolor;'>$title $version</span>:</td><td>Focused on $channel</td></tr>\n"; // push to client
} else if ($cmd[0]=="/nick") {
if($cmd[1]!="") {
doLog("$username: setting nick to " . $cmd[1]);
$line .= "NICK " . trim($cmd[1]) . "\n"; // set for push
@ -124,7 +127,8 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni
$logline .= "/part (channel): Part channel, part focused channel if none specified<br />";
$logline .= "/rejoin (channel): Part, and join a channel; focused channel if none is specified<br />";
$logline .= "/nick [nickname]: Change your nickname<br />";
$logline .= "/list [channel]: List users in a channel</td></tr>\n";
$logline .= "/list [channel]: List users in a channel<br />";
$logline .= "/channel: Prints focused channel / user (Alias: /focused)</td></tr>\n";
} else {
// @@ This is a work in progress
// Sends every channel message to each channel :[