From 2d981412943279d49a479d5f789522a891a363f2 Mon Sep 17 00:00:00 2001 From: Pentium44 Date: Wed, 9 Dec 2020 21:52:22 -0800 Subject: [PATCH] Added some commands... --- server.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server.php b/server.php index db65d66..bbd851e 100755 --- a/server.php +++ b/server.php @@ -96,15 +96,17 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni } else if ($cmd[0] == "/focus" || $cmd[0] == "/switch" || $cmd[0] == "/query") { if(trim($cmd[1]) != $channel) { $_SESSION['idleirc-channel'] = trim($cmd[1]); - $logline .= "$servaddr: " . trim($cmd[1]) . " is focused, all messages will be sent to " . trim($cmd[1]) . "\n"; // push to client + $logline .= "$title $version: " . trim($cmd[1]) . " is focused, all messages will be sent to " . trim($cmd[1]) . "\n"; // push to client } else { - $logline .= "$servaddr: You're already focused on $channel\n"; + $logline .= "$title $version: You're already focused on $channel\n"; } + } else if ($cmd[0] == "/help" || $cmd[0] == "/?") { + $logline .= "$title $version: HELP: Information about $title
/join [channel] : Join IRC channel [channel]
/focus [channel|user]: Funnel messages to specific channel or user (Alias: /switch; /query)
/part (channel): Part channel, part focused channel if none specified
/rejoin (channel): Part, and join a channel; focused channel if none is specified\n"; } else { // @@ This is a work in progress // Sends every channel message to each channel :[ $line .= "PRIVMSG $channel :$msg\n"; - $logline .= "$nick in $channel: $msg\n"; + $logline .= "$nick to $channel: $msg\n"; } // Get original content