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.

Is There Another Op Code ?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Dominatez
Halfop
Posts: 50
Joined: Mon Jan 14, 2019 5:08 pm
Location: United Kingdom

Is There Another Op Code ?

Post by Dominatez »

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.
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Re: Is There Another Op Code ?

Post by willyw »

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 !
s
simo
Revered One
Posts: 1107
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

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.
User avatar
Dominatez
Halfop
Posts: 50
Joined: Mon Jan 14, 2019 5:08 pm
Location: United Kingdom

Post by Dominatez »

Thanks guys.

Worked a treat.
Post Reply