| View previous topic :: View next topic |
| Author |
Message |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Jan 19, 2009 7:25 pm Post subject: incith:NickServ (Any Network) (r88) (Jan. 19th, 2009) |
|
|
Newest versions of my scripts are always available @ incith.com if they are not yet available on the Tcl archive.
Script I wrote, at first, to work with FreeNode, and then I decided it could just work anywhere with a few simple variables. The script will not send any log output, it just watches for incoming notices (configured, see below) and responds when necessary.
Just set the name of NickServ, and the uhost of NickServ (/whois nickserv), and the identification string to send, and you'll be good to go, probably. I'm basing that theory on the fact that most or all networks use some form of "/msg <nickserv> <a string to identify>". If your network has /NS support (like freenode..), you can set use_ns to 1, and it will do /NS <string to send>. The uhost is set to make sure that incoming notices are from the real nickserv.
And then there's just an auth_strings variable to set the messages nickserv sends you when it wants you to authenticate (defaults to freenode).
If anyone needs the script modified to send commands in a different way, feel free to email or message me etc, and I'll add support for other servers as time goes on, if/when necessary. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
achilles1900 Voice
Joined: 21 Apr 2008 Posts: 30
|
Posted: Sun Nov 01, 2009 9:09 am Post subject: For Dalnet |
|
|
Hi brother Incith,
can you modify this script so it works on DALNET please?
I would do it my self but i dont know TCL and i like using your scripts mate, thanks in advance
Achilles |
|
| Back to top |
|
 |
pogue Voice

Joined: 17 May 2009 Posts: 28
|
Posted: Sat Nov 07, 2009 3:45 pm Post subject: Re: For Dalnet |
|
|
| achilles1900 wrote: | Hi brother Incith,
can you modify this script so it works on DALNET please?
I would do it my self but i dont know TCL and i like using your scripts mate, thanks in advance
Achilles |
I don't use Dalnet, but basically all you need to change is the variables for the user and host of Nickserv and what message Nickserv sends when it tells you that the nickname is registered. For my server, which uses Unreal IRCD w/ Anope services it is like below. Just /whois nickserv and copy and paste the host.
Line 45: | Code: | | variable uhost {services@chat4all.org} |
Line 55 & 56: | Code: | variable auth_strings {You have been logged out.|
This nickname is registered*} |
You can change it to | Code: | | variable auth_strings {*} | and then it will identify anytime Nickserv says anything to your bot. The only thing this script lacks is functionality for release & ghosting when the nickname is in use or pings out. There is another script that apparently works with that (search this site's TCL archive for a script by author WD40) but I haven't tested it.
One other important thing: be sure and add the network's channel services (Nickserv/Chanserv/etc) as a friend so your bot won't ignore it!
Hope that helps,
pogue
PS -- I can't get the bot to apply modes after authenticating when using this script, but I'm in incith's IRC channel right now trying to find out why.
Answer:
| Quote: | [01:27pm] <@pogue> im having a bit of trouble w/ incith's nickserv script, the bot doesnt want to set the modes after its authenticated
[01:30pm] <@pogue> ie: putquick "MODE :${botnick} ${incith::nickserv::modes}"
[01:30pm] <@pogue> should be setting mode +iB-ws
[01:30pm] <@pogue> but... nothin
[02:22pm] <@mezzanine> depending on the IRCd your bot is connecting to, you might want to omit the : in the MODE command
[02:22pm] <@mezzanine> on Unreal for example, including : produces an error
[02:23pm] <@pogue> the : before the ${botnick} ?
[02:24pm] <@mezzanine> yes
[02:24pm] <@mezzanine> remove that and see what happens
[02:25pm] <@pogue> perfect |
_________________ Helpful Tools:
|
|
| Back to top |
|
 |
|
|
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
|
|