The script will only set +v on me no matter what.
I want:
if there is no nick provided, set +v on $nick, but if there is a nick provides, set +v on said nick.
Branden wrote:The script will only set +v on me no matter what.
I want:
if there is no nick provided, set +v on $nick, but if there is a nick provides, set +v on said nick.
This is your problem. Change the 1 to a 0 and you will be fine. 0 is the first index position of $text. 1 would be the 2nd, which of course is always == ""