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.

Setting +a & +q usermodes

General support and discussion of Eggdrop bots.
Post Reply
Z
Zammo
Voice
Posts: 2
Joined: Thu May 10, 2012 2:57 pm

Setting +a & +q usermodes

Post by Zammo »

I have searched and searched through the forum, help pages, scripts archive and various website looking for any info on how I can get my eggdrop to set +a & +q usermodes on a UnrealIRCd network. I doubt I am the first person to ask this question but my searches have come up with nothing.

Is there a way I can give my eggdrop the ability to set these extra usermodes? Does anyone know of a script that will do it?

Any help would really be appreciated :)
F
FightingNavyman
Voice
Posts: 35
Joined: Tue Jan 18, 2011 12:39 pm

Post by FightingNavyman »

same here i want my bots to give +a and or +q to my friends
w
willyw
Revered One
Posts: 1204
Joined: Thu Jan 15, 2009 12:55 am

Re: Setting +a & +q usermodes

Post by willyw »

Zammo wrote:I have searched and searched through the forum, help pages, scripts archive and various website looking for any info on how I can get my eggdrop to set +a & +q usermodes on a UnrealIRCd network. I doubt I am the first person to ask this question but my searches have come up with nothing.

Is there a way I can give my eggdrop the ability to set these extra usermodes? Does anyone know of a script that will do it?
I haven't fiddled around with a complete script for this, but :

Code: Select all

.tcl putserv "mode #channel +a some_nick"
in the partyline works fine. I just tried it, using a bot that is on an Unreal irc network.

If you have enabled use of
.tcl
for yourself (it is in eggdrop.conf) , try the above.

Once you are sure that it works, then you can experiment with writing your own script.

Also, you might find something useful here:
http://thommey.tclhelp.net/?page=scripts
See: Arbitrary chanmodes (+q, +a)

I hope this helps.
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

An oldish post I know just incase its not been solved here is some code i use your eggdrop will obviously require oper level privs but here it is

Code: Select all

bind msg A|A protect cmd:protect 
proc cmd:protect {nick uhost hand arg} { 
global channels 
  set chan [lindex [split $arg] 0] 
foreach c $channels { 
if {!([matchattr $hand n|n $chan]) && [string match -nocase $c $chan]} { 
return 0 
} 
} 
  putserv "OPERSERV MODE $chan +ao $nick" 

}  


set channels { 
"#addchannel"
} 




bind msg A|A deprotect cmd:deprotect 
proc cmd:deprotect {nick uhost hand arg} { 
global channels 
  set chan [lindex [split $arg] 0] 
foreach c $channels { 
if {!([matchattr $hand n|n $chan]) && [string match -nocase $c $chan]} { 
return 0 
} 
} 
  putserv "OPERSERV MODE $chan -ao $nick" 

}  

set channels { 
"#Addchannel" 
} 

This section is so you can add channels you dont want them getting opered in

Code: Select all

set channels { 
"#Addchannel" 
} 
They will have to be added to your bots user list for this to work with the A flag all they need to do is type

/msg botnick protect #channel
/msg botnick deprotect #channel
Z
Zammo
Voice
Posts: 2
Joined: Thu May 10, 2012 2:57 pm

Post by Zammo »

Thanks Blake, this was a problem I still needed to be solved :)
Post Reply