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 

need autoop on join only for authed people

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


Joined: 23 Nov 2007
Posts: 29

PostPosted: Sun Feb 24, 2008 7:37 pm    Post subject: need autoop on join only for authed people Reply with quote

Hi, i know and ive got a lot of autoop tcl scripts on join but i'd like that only users authed that join my channel get +o, then i no need to set +r mode in the channel and all people can join.

It's for QuakeNet network. For example, a whois from an user :

[ont]zENT`OFF is zENTION@zenti0n.users.quakenet.org * ...
[ont]zENT`OFF on #one
[ont]zENT`OFF using *.quakenet.org QuakeNet IRC Server
[ont]zENT`OFF is authed as zenti0n
[ont]zENT`OFF End of /WHOIS list.

The bot should check the nick when it joins my channel, and if he detects the four line where it shows : [ont]zENT`OFF is authed as zenti0n

Then it gets +o.

No matters if the ip is hidden like : @zenti0n.users.quakenet.org or it has the ip XX.XXX.XXX.XX, the bot must know if he has auth or not.

Thanks a lot!
Back to top
View user's profile Send private message
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Mon Mar 10, 2008 9:06 am    Post subject: please Reply with quote

please if you can when you have time, it would be nice if you can, try to make that script because autoop scripts for all joiners are not good because people that join proxys can make takeovers.
Thanks mates!
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Mon Mar 10, 2008 10:53 am    Post subject: Reply with quote

EDIT: Edited the WHO request arguments

Code:
bind join -|- {*} auth:check
bind raw -|- {354} auth:raw

proc auth:check {nick host hand chan} {
    if {![string equal -nocase #mychannel $chan]} { return }
    if {[string match -nocase *.users.quakenet.org $host]} {
        utimer 5 [list auth:op $chan $nick]
    } else {
        puthelp "WHO $nick n%nat,167"
    }
}

proc auth:raw {from raw arg} {
    if {[lindex [split $arg] 1] == "167"} {
        set nick [lindex [split $arg] 2]
        set auth [lindex [split $arg] 3]
        if {$auth != "" || $auth != "0"} {
            utimer 5 [list auth:op #mychannel $nick]
        }
    }
}

proc auth:op {chan nick} {
    if {[onchan $nick $chan] && ![isop $nick $chan]} {
        pushmode $chan +o $nick
        flushmode $chan
    }
}


This is basic, and untested.

Make sure you edit all the #mychannel to the name of the channel you want it to work for!
_________________
r0t3n @ #r0t3n @ Quakenet


Last edited by r0t3n on Wed Mar 19, 2008 11:59 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Wed Mar 19, 2008 8:31 am    Post subject: wrong Reply with quote

Hi again, ive tested it and it doesnt work, when an authed user join, it gets +o, thats good, but when a normal user without auth joins the channel, he gets +o too. So, all users get +o. Please check it and try to make that only people with auth gets +o . Bot must check on join if the user has auth, not necessary to be +x and show .users.quakenet.org , if the user has auth but has not +x mode setted, he should get +o too.
Please someone that can fix the script.
Thanks masters!


Last edited by noobman on Fri Apr 11, 2008 5:55 am; edited 1 time in total
Back to top
View user's profile Send private message
garfwen
Halfop


Joined: 12 Mar 2008
Posts: 61

PostPosted: Wed Mar 19, 2008 9:04 am    Post subject: Reply with quote

Exacly..( the bot is oping by the host.. and not by the "authed as" message)... can any 1 fix it?

Regards,
garfwen
Back to top
View user's profile Send private message
noobman
Voice


Joined: 23 Nov 2007
Posts: 29

PostPosted: Sat Apr 12, 2008 5:13 am    Post subject: please Reply with quote

please it would be nice if someone of you could fix the script to dont give +o to all who joins. Only to authed people, doesnt matter iff who joins have ip hidden or not, the bot should detect if who joins has auth setted.
Thanks masters!
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