Problem with /MENU ADD "$TAB/..."

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Problem with /MENU A

Postby dash9 » 27 May 2009 00:56

I'm trying the example in the documentation, but it has no effect:
Code: Select all
/MENU -p0 ADD "$TAB/Cycle Channel" cycle


Strangely, if I add an "x" after "$TAB", it works (the menu item appears):
Code: Select all
/MENU -p0 ADD "$TABx/Cycle Channel" cycle


It also works with " " (space) instead of "x", and I expect it works with other characters, also.

Any idea why the original example does not work?

EDIT: I restarted xchat and it works now.
EDIT2: /MENU ADD "$TABx/test" should fail instead of .. ignoring "x", because if that menu item is added, it cannot be removed with /MENU DEL "$TAB/test" and it can be very very confusing. Please fix it.
dash9
 
Posts: 13
Joined: 13 Apr 2009 17:28

Re: Problem with /ME

Postby dash9 » 31 May 2009 22:10

Some more weirdness:
I'm running this command in my script and it does not work:
Code: Select all
xchat.command('MENU ADD "$TAB/Bookmark This Channel" "BOOKMARK %s"')

If I try to give the command directly, it also does not work, but if I do a DEL and then I run it again directly, it works!
Any idea why?
dash9
 
Posts: 13
Joined: 13 Apr 2009 17:28


Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 0 guests