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.

need-unban question

Old posts that have not been replied to for several years.
Locked
m
mike

need-unban question

Post by mike »

This always worked fine in the conf with 2 lines. I added a 3rd line...

need-unban { putserv "nickserv xxxxxxxxx"
putserv "chanserv xxxxxxxx"
putserv "chanserv xxxxxxxx" }

...and now I get the error...

Tcl error in script for 'need-unban':
missing "

What am I missing here?
tnx
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is actualy one of those anoying things about software, but you start realising why they are there.

The length of text that you can place in this setting is limited (preventing memory clogup).

There is however a work around. This isn't a workaround as such, more the main way it was intended to be used.

Simply create you own script, to handle this, which can contain as many lines as you want, and place a line to call this script in the need-unban line.

Code: Select all

proc my_need_unban {} {
  putserv "nickserv xxxxxxxxx"
  putserv "chanserv xxxxxxxx"
  putserv "chanserv xxxxxxxx"
}

channel set #channel need-unban {my_need_unban}
However, this will only allow for one channel to be hardcoded in. SO using simple proper Tcl scripting, you can do the following with it.

Code: Select all

proc my_need_unban {chan} {
  putserv "nickserv xxxxxxxxx"
  putserv "chanserv unbanme $chan"
  putserv "chanserv xxxxxxxx"
}

channel set #channel need-unban {my_need_unban #channel}
channel set #hello need-unban {my_need_unban #hello}
You pass it the channel name, and it can be used to dynamicly change the line being sent to the server, rather than hardcoding it.
m
mike

Post by mike »

ppslim...thanks for all the good info! You know your stuff.
Locked