This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:NickServ (Any Network) (r88) (Jan. 19th, 2009)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

incith:NickServ (Any Network) (r88) (Jan. 19th, 2009)

Post by incith »

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.
a
achilles1900
Voice
Posts: 30
Joined: Mon Apr 21, 2008 5:40 am

For Dalnet

Post by achilles1900 »

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

8)
Achilles
User avatar
pogue
Voice
Posts: 28
Joined: Sun May 17, 2009 3:56 am
Contact:

Re: For Dalnet

Post by pogue »

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

8)
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: Select all

variable uhost {services@chat4all.org}
Line 55 & 56:

Code: Select all

variable auth_strings {You have been logged out.|
			 This nickname is registered*}
You can change it to

Code: Select all

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:
[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:
  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
Post Reply