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 

Setting +a & +q usermodes

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


Joined: 10 May 2012
Posts: 2

PostPosted: Thu May 10, 2012 3:09 pm    Post subject: Setting +a & +q usermodes Reply with quote

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


Joined: 18 Jan 2011
Posts: 35

PostPosted: Thu May 10, 2012 3:44 pm    Post subject: Reply with quote

same here i want my bots to give +a and or +q to my friends
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu May 10, 2012 4:01 pm    Post subject: Re: Setting +a & +q usermodes Reply with quote

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
View user's profile Send private message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Tue Jul 10, 2012 11:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Zammo
Voice


Joined: 10 May 2012
Posts: 2

PostPosted: Wed Jul 11, 2012 3:52 am    Post subject: Reply with quote

Thanks Blake, this was a problem I still needed to be solved Smile
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 -> Eggdrop 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