This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Brackets and timer problem

Old posts that have not been replied to for several years.
Locked
s
scr0llwheel
Voice
Posts: 17
Joined: Fri Jan 03, 2003 12:37 am

Brackets and timer problem

Post by scr0llwheel »

I have a short script that checks the access of a user after they join the channel. When the user joins the channel, a timer is created:

Code: Select all

utimer 3 "checkaccessafterjoin $nick $host $chan"
Now, the error I'm getting is if someone joins with a nickname that has brackets in it (something like [NGL]Fate), it'll treat what is inside the brackets as a command. I get the following error:

Code: Select all

Tcl error in script for 'timer173':
invalid command name "NGL"
Other than it being annoying, I'm also worried about security. Like what if someone joins with a nickname that has "[die]" in it.

How can I have eggdrop ignore the brackets in the user's nickname?

Thanks
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

You should use
  • to pass the arguments to timer/utimer.

    Code: Select all

    utimer 3 [list checkaccessafterjoin $nick $host $chan]
    
Locked