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 

Chanservneed
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 9:15 am    Post subject: Chanservneed Reply with quote

I am currently too lazy to repost the whole thing, so I make it short (and probably add later the full one):

  • ChanServ features: reop, unban and invite on need
  • NickServ features: stay authed, keep primary nick, ghost nick if needed and probably always join with authed main nick in chan
  • General features: event driven interaction, only acts if services are on, compact code (~250 lines)


I need feedback esspiaclly for compatiblity with networks not running default services or with changed strings from the defaults I know.
I will not add a "works-at-instant-for-any-networks" feature, but I would provide some general possibilties to configure the neccessary.

Download (v1.5.4 13.09.06):
http://home.arcor.de/dekus/chanservneed.zip
http://home.arcor.de/dekus/chanservneed.tar.bz2
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...


Last edited by De Kus on Wed Sep 13, 2006 7:32 am; edited 12 times in total
Back to top
View user's profile Send private message MSN Messenger
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sun Apr 10, 2005 3:13 pm    Post subject: Reply with quote

I did a script like ChanServ Auto Need a year ago when I was very new with TCL. The script still has bugs, maybe you can upgrade it if you like or I can when I get time, because some silly things and bugs in it do need to be fixed and that huge code needs to be minimized by say adding switch functions and so.

It's added on egghelp.org:
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1023
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 3:32 pm    Post subject: Reply with quote

besides except that script is simply huge and has tons of redudant code, configurations and features I cannot find a feature my script couldn't handle. As said before, I want to make the rejoin event driven (meaning instead of using utimer for the JOIN, I want to bind to the chanserv respond). But this is planed for future.

If you can tell me a feature from your script, my script doesnt support and isn't supported by the eggdrop core either (example: your key remove setting, you could simply use the '.chanset #channel chanmode' feature to enforce setting of a given key or remove the key), I could try to include it into mine ^-^.
Of course my script needs more configuration via partyline, but the other way you can easily permanently change them via partyline again without updating the script ^^.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sun Apr 10, 2005 3:46 pm    Post subject: Reply with quote

Yes it does need serious updates as I said earlier, nevermind I'll plan todo it within this month hopefully and improve the code and add more features to it.

You can bind to chanserv respond, say "Channel bans for #awyeah have been cleared" if the bot is trying to rejoin." Then call your need-unban proc from there or enforce a putquick JOIN, or channel -inactive which ever you are using.

Mines just enhance the need-* functions a bit, nothing big.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 10, 2005 4:25 pm    Post subject: Reply with quote

I was going to start coding a similar script, good thing you did it Razz . I'll load it on my bot and give feedback.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 4:38 pm    Post subject: Reply with quote

I am currently beta-testing these code changes:
Code:
set joinbindunban "set bind \"*You have been unbanned from \002\$channel\002.\""
for configuartion and should be adjusted for the network Smile

Code:
         eval $::joinbindunban
         bind notc f $bind "{handle:join} {$channel} {$bind}"
for need unban

Code:
proc handle:join {chan bind nick uhost hand text dest} {
   if { $hand == "chanserv" } {
      putquick "JOIN :$chan"
      unbind notc m $bind "{handle:join} {$chan} {$bind}"
   }
   return 0
}
the proc called from the need binds

It looks good so far, so might release it soon as v1.3. Maybe someone can see possible trouble just by looking at it. It fascinating, but it really works that way Smile.
I didn't come up with a faster, easier, shorter and most fexible and realiable possibility. Just in the case we need to rejoin 2 channels at once, this script should still rejoin that channel it has really been fixed for.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...


Last edited by De Kus on Tue Apr 12, 2005 6:49 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 10, 2005 5:08 pm    Post subject: Reply with quote

My bot's on DALnet, and the script did not work. The bot didn't identify at all.

added nickserv and chanserv to the userlist as requested:
Quote:
.whois nickserv
HANDLE PASS NOTES FLAGS LAST
nickserv yes 0 f never (nowhere)
HOSTS: *!service@dal.net
.whois chanserv
HANDLE PASS NOTES FLAGS LAST
chanserv yes 0 jlmoptx never (nowhere)
HOSTS: *!service@dal.net

and changed the notice masks to:
Quote:
bind notc f|- "*owned by someone else*" handle:nickneed
bind notc f|- "*Password accepted*" handle:nickauthed
bind notc f|- "*ghost has been successfully killed*" handle:nickchange
bind notc f|- "*Your nick has been changed to Guest*" handle:deguest
bind notc m|- "*do not have access to*" handle:permneed

Yet, the bot did not identify. Any suggestions ?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 5:16 pm    Post subject: Reply with quote

maybe the bots sees nickserv as chanserv, because they have the same hostmark ^-^.

Mine looks like this:
Code:
[22:18:42] #De_Kus# whois chanserv
HANDLE                         PASS NOTES FLAGS           LAST
chanserv                       no       0 efhjlmoptx      10 Mar (#rns)
                       #dn                -               18 Mar
                       #anime-center      -               13 Apr
                       #rns               lov             10 Mar
                       #ragnarokonline    lov             27 Apr
  HOSTS: ChanServ!services@euirc.net


PS: I hope you don't mind that I just copied your DALnet binds to the script Very Happy.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 10, 2005 5:36 pm    Post subject: Reply with quote

ok, I added NickServ!service@dal.net to nickserv and ChanServ!service@dal.net to chanserv. The bot doesn't send identification when it recieves "*owned by someone else*" notice.
Quote:
[15:32] -NickServ (service@dal.net)- This nick is owned by someone else. Please choose another.
[15:32] -NickServ (service@dal.net)- If this is your nick, type: /msg NickServ@services.dal.net IDENTIFY <password>
[15:32] -NickServ (service@dal.net)- Your nick will be changed in 60 seconds if you do not comply.

but when I manually identify:
Quote:
[15:33] NickServ accepted identification.
[15:33] -NickServ (service@dal.net)- Password accepted for botnick.

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 5:47 pm    Post subject: Reply with quote

have you edited your server entries to contain your nickpass as serverpass (I somehow love this feature, saves some byte and makes a faster impression to me), or if DALnet doesnt support this, did you set initservpassneeded to 1?
Code:
proc handle:serverinit {type} {
   global nick nickpass nickservmask nickauthed initservpassneeded
   set nickauthed 2
   if { ![isbotnick $nick] } {
     putquick "$nickservmask :GHOST $nick $nickpass"
   } elseif { $initservpassneeded } {
      putquick "$nickservmask :IDENTIFY $nickpass"
   }
   return 0
}

as you can see, password won't be send by the script, if the var is set to 0 (what is its default, maybe I should change this to the opposite for the public version Very Happy).
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 10, 2005 5:57 pm    Post subject: Reply with quote

lol, I actually didn't understand what you meant with that setting so I ignored it. When I set it to 1 the script worked fine. I'll come back with extra feedback about it.

PS: add (DALnet set this to 1) in its comment Razz
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 10, 2005 5:59 pm    Post subject: Reply with quote

Oh yeah, I'm over 1000 posts *again* Very Happy
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 6:42 pm    Post subject: Reply with quote

Sir_Fz wrote:
lol, I actually didn't understand what you meant with that setting so I ignored it. When I set it to 1 the script worked fine. I'll come back with extra feedback about it.

PS: add (DALnet set this to 1) in its comment Razz

I will set to 1 by default, I hope I won't forget it when actually copiing the changes into the public script ^-^.

Sir_Fz wrote:
Oh yeah, I'm over 1000 posts *again* Very Happy

how dare you spam in my thread Very Happy.
congratz anyway Razz.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Mon Apr 11, 2005 1:56 am    Post subject: Reply with quote

You can maybe add NickServ and ChanServ to a watch list, and then only send nick identification or channel unban request to them, and on triggers received from those replies do whatever you like.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Apr 11, 2005 4:27 am    Post subject: Reply with quote

you mean the bot shouldn't try to send to nickserv and chanserv if they are offline, or whats your idea?
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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