$nick == %variable? - 19/03/15 12:20 PM
Hello,
currently trying to do something like this:
and
I think what it's supposed to do is fairly easy, but I'll explain it anyways. Basically I want to give every moderator the power to do a certain command, however only the specific person who started it should have the power to do the follow-up command too.
Pretty sure the syntax "if ($nick == %commandstarter)" is wrong.
Is there even a way of doing this or should I rely on .txt files?
currently trying to do something like this:
Code:
On *:text:!command:#:{ if (($nick isop $chan) { msg $chan $nick did the thing! set %commanduser $nick } }
and
Code:
On *:text:!command2:#:{ if ($nick == %commanduser) { msg $chan %commanduser did the second thing! unset %commanduser } }
I think what it's supposed to do is fairly easy, but I'll explain it anyways. Basically I want to give every moderator the power to do a certain command, however only the specific person who started it should have the power to do the follow-up command too.
Pretty sure the syntax "if ($nick == %commandstarter)" is wrong.
Is there even a way of doing this or should I rely on .txt files?