| View previous topic :: View next topic |
| Author |
Message |
Zammo Voice
Joined: 10 May 2012 Posts: 2
|
Posted: Thu May 10, 2012 3:09 pm Post subject: Setting +a & +q usermodes |
|
|
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  |
|
| Back to top |
|
 |
FightingNavyman Voice
Joined: 18 Jan 2011 Posts: 35
|
Posted: Thu May 10, 2012 3:44 pm Post subject: |
|
|
| same here i want my bots to give +a and or +q to my friends |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu May 10, 2012 4:01 pm Post subject: Re: Setting +a & +q usermodes |
|
|
| 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: |
.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. |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Tue Jul 10, 2012 11:18 pm Post subject: |
|
|
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: | 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: | 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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
Zammo Voice
Joined: 10 May 2012 Posts: 2
|
Posted: Wed Jul 11, 2012 3:52 am Post subject: |
|
|
Thanks Blake, this was a problem I still needed to be solved  |
|
| Back to top |
|
 |
|