egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is There Another Op Code ?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Dominatez
Voice


Joined: 14 Jan 2019
Posts: 28
Location: United Kingdom

PostPosted: Tue Apr 23, 2019 4:20 pm    Post subject: Is There Another Op Code ? Reply with quote

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.
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1045

PostPosted: Tue Apr 23, 2019 10:32 pm    Post subject: Re: Is There Another Op Code ? Reply with quote

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:

 # 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.
Smile
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 330

PostPosted: Wed Apr 24, 2019 9:49 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Dominatez
Voice


Joined: 14 Jan 2019
Posts: 28
Location: United Kingdom

PostPosted: Wed Apr 24, 2019 5:19 pm    Post subject: Reply with quote

Thanks guys.

Worked a treat.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber