Sorry if I didn't make myself clearer
It's not a trigger from a user.
I'm trying to run a script so that one of my staff can use a trigger and then my script will send few instructions to specific users chosen.
What I need is that when the staff enters a trigger or something then my script will check if that user is actually online or not. If the user is ONLINE, it'll send a message to that user and if it's not online, it'll skip the script and go to the next nick chosen in my list.
I have approx 40+ users in my channel and i only want the staff to be able to use the trigger so that my script can send message to those people i trust (about 4 users).
It's weird that
if (colt45 ison #) { runscript }
didn't work
Example what I want this to do...
@Staff1
@Staff2
@Staff3
+user1
+user2
+user3
+user4
+user5
user6
user7
user8
Now, these staff can use the trigger for my script to run.
When my script starts to run, it'll check if these users are online or not, i.e. let's pick
user1,
user3 and
user5.
If that user1 and user5 is online it'll get the message from myself but if that user3 is offline, so it should skip and proceed to the rest of the script.
Reason I'm asking for help with this because when user3 goes offline, it's showing me loads of
No such nick/channel.
So therefore, i just want a script simply check if these users are online before sending them a message.
Hope you understand what I'm trying to do :s
TIA