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 

Deop user that was op'ed by op

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Aug 17, 2006 11:48 am    Post subject: Deop user that was op'ed by op Reply with quote

I tried with no luck looking in archives..

I'm trying to get a script that will make the bot deop the user who was giving ops.

Sample:
RoomOP: sets mode +o Nick2
Bot: sets mode -o Nick2
Bot: RoomOP, don't make me fire you :/

Thanks.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Aug 17, 2006 11:57 am    Post subject: Reply with quote

Setting the channel +bitch should do this, atleast the de-opping (won't nag the one opping tho).

There's also a few scripts with names similar to "bitch" that behaves in a similar fashion (some kick, some do ther stuffs), might be worth checking..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Aug 17, 2006 11:32 pm    Post subject: Reply with quote

Yeah but if I use +bitch don't that mean I have to give all ops a +o flag via the bot? Our chat network allows all ops to join channels automatically op'ed by the server so you come in like:

[8:00pm] * Joins: Nick (Nick@Nick)
[8:00pm] * Nick sets mode: +o Nick

Thanks
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Aug 18, 2006 3:42 am    Post subject: Reply with quote

eggdrop.conf:
Quote:
#
# bitch
# Only let users with +o flag be opped on the channel?
#

'stopnethack-mode' is also affected if not turned off.

Some networks have a 'SecureOps' setting the forbids anyone not in the access list getting opped.

Quote:
-ChanServ- Syntax: SET channel SECUREOPS {ON | OFF}
-ChanServ-
-ChanServ- Enables or disables the secure ops option for a channel.
-ChanServ- When secure ops is set, users who are not on the userlist
-ChanServ- will not be allowed chanop status.

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sat Aug 19, 2006 1:56 am    Post subject: Reply with quote

I tried +bitch and the bot didn't deop anyone or do a thing when ops gave others temp ops??

I then tried superbitch.tcl in scripts archive that was no go, same for a few other scripts, those deop scripts look like old coding so im guessing their out of date?

While im still learning tcl, I still don't know how to make the bot grab the 2nd nick.. 1stNick: sets mode +o 2ndNick then deop it.

Thanks
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Aug 19, 2006 2:39 am    Post subject: Reply with quote

The Network you reside on has no services? If they do, then simply save yourself a headache and do as I suggested in my post; that is unless this is a "project" you have undertaken to see how many headaches can be gained in one day. Smile

Quote:
MODE #channel +o Nick
nick!username@domain.com MODE #channel +o Nick

The above is the notice sent when a user ops another.

Just use your RAW log window in mIRC to view various events.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Aug 19, 2006 8:22 am    Post subject: Reply with quote

If your bot does'nt deop ppl being opped, it's due to one of these reasons:

  1. User opping is identified as Master (+m) or Owner (+n)
  2. User being opped is identified as an Op (+o)
  3. Channel was not successfully set +bitch

Also, having your eggdrop stopping ppl from opping other can be abit daunting, as you'd still have to keep a list of who's allowed to op, possibly who's allowed to get ops, etc..

I'd either try something like suggested by Alchera, or let the eggie handle all opping, except using services to keep bots opped at all times..

Trying to keep eggdrop userlists and channel service permissions in sync is just a... well, ****** mess.

As for the mode binding, try something like this:
Code:

bind mode - * check_deop
proc check_deop {nick host hand chan mode target} {
 if {$mode == "+o" && ![isbotnick $nick] && ![isbotnick $target]} {
  pushmode $chan "-o" $target
 }
}

Should'nt allow anyone to op other than your bot.. prolly have to tweak it to handle service-op properly...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sat Aug 19, 2006 1:16 pm    Post subject: Reply with quote

Nope it don't have secureop services thats why I am looking for a simple script to force bot to deop temp oppers, the bots op levels are stronger then the regular ops levels...

Last edited by cache on Sat Aug 19, 2006 1:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sat Aug 19, 2006 1:50 pm    Post subject: Reply with quote

Code:
bind mode - * check_deop
proc check_deop {nick host hand chan mode target} {
 if {$mode == "+o" && ![isbotnick $nick] && ![isbotnick $target]} {
  pushmode $chan "-o" $target
 }
}


This did the trick thanks
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 -> Script Requests 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