I'd like to create a multi functional user command that both warns a user that they are sharing a file that is banned by the hub rules and posts to the main chat that they have been warned so that all op/users in our hub are notified of the issue. I am currently using the following 2 scripts:
a command I call Warn as a PM with the command text --
%[nick] You are sharing a file or file types not allowed by the hub rules. We only share compressed, lossless media here. The file is located in your %[file] path. Please unshare,hide or remove it and type /refresh in the main chat to update you share list. If I can be of further assistance let me know. Thanks for taking the time to correct this problem. Splat You must reply in the main chat that the problem has been corrected or ask for more time within 5 minutes or be banned
and a command I call "to hub" as a chat with the command text --
The user %[nick]%[ip] has been warned in a PM for sharing files %[file] prohibited by the hub rules. The user must reply to the main chat that the problem has been corrected, or risk being banned. %[nick] was given 5 minutes to comply or ask for more time.
Is there any way to join these 2 commands by editing the text of the command, so that I could have 1 message go to the user and the other to the chat in 1 right click option? I'm also interested in time-stamping the warnings/messages and am not sure how.
Thanks for your help Splat
Creating a Multi-Functional User Command
Moderator: Moderators
-
Twink
- Posts: 436
- Joined: 2003-04-01 04:31
- Location: New Zealand
use a raw command and put a | between the two commands, for example here's the default kick command, there are three parts the public message the private message and the actual kick
"$To: %[nick] From: %[mynick] $<%[mynick]> You are being kicked because: %[line:Reason]|<%[mynick]> %[mynick] is kicking %[nick] because: %[line:Reason]|$Kick %[nick]|";
"$To: %[nick] From: %[mynick] $<%[mynick]> You are being kicked because: %[line:Reason]|<%[mynick]> %[mynick] is kicking %[nick] because: %[line:Reason]|$Kick %[nick]|";
Who is online
Users browsing this forum: Google [Bot] and 0 guests