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.
Help for those learning Tcl or writing their own scripts.
Dominatez
Halfop
Posts: 50 Joined: Mon Jan 14, 2019 5:08 pm
Location: United Kingdom
Post
by Dominatez » Tue Apr 23, 2019 4:20 pm
Is there another identifier for ops with ~ beside their nickname.
The bot does not recognise.
if {[isop $nick $chan] || [isvoice $nick $chan]}
Recognises @ as an op and +v as a voice, but refuses to do anything with ~next to the names.
willyw
Revered One
Posts: 1205 Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw » Tue Apr 23, 2019 10:32 pm
Dominatez wrote: Is there another identifier for ops with ~ beside their nickname.
The bot does not recognise.
if {[isop $nick $chan] || [isvoice $nick $chan]}
Recognises @ as an op and +v as a voice, but refuses to do anything with ~next to the names.
Look in eggdrop.conf.
Find:
Code: Select all
# Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.
set opchars "@"
#set opchars "@&~"
Try adjusting that.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
simo
Revered One
Posts: 1107 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Apr 24, 2019 9:49 am
thommey's arbitrary chanmodes tcl adds those checks
if {[isowner $nick $chan] || [isadmin $nick $chan] || [isop $nick $chan] || [ishalfop $nick $chan] || [isvoice $nick $chan]}
http://thommey.tclhelp.net/dl/dl.htcl?id=6
Last edited by
simo on Thu Apr 25, 2019 8:21 am, edited 1 time in total.
Dominatez
Halfop
Posts: 50 Joined: Mon Jan 14, 2019 5:08 pm
Location: United Kingdom
Post
by Dominatez » Wed Apr 24, 2019 5:19 pm
Thanks guys.
Worked a treat.