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.

little help with identify script plz?

Old posts that have not been replied to for several years.
Locked
s
sd-

little help with identify script plz?

Post by sd- »

Hi,

I downloaded an identify script from here that identifies when it detects a notice from nickserv. But I want it to also identify when i enter .identify in party line.
As i'm a complete tcl noob, i tried something looking at other tcl's and reading some docs... but couldn't figure it out. Maybe some1 here could help me?

This is the code:

set identcmd "identify"
set identpass "mypass"
set nickserv "NickServ"

bind dcc m identify identify:dcc

proc identify:dcc {handle idx arg} {
global botnick nickserv identcmd identpass
puthelp "PRIVMSG $nickserv $identcmd $identpass"
putlog "Identifying to $nickserv (as $botnick)"
}

all it does is an /msg nickserv identify
it does not send the password :(
any ideas?

greets!
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: little help with identify script plz?

Post by egghead »

sd- wrote: This is the code:

set identcmd "identify"
set identpass "mypass"
set nickserv "NickServ"

bind dcc m identify identify:dcc

proc identify:dcc {handle idx arg} {
global botnick nickserv identcmd identpass
puthelp "PRIVMSG $nickserv $identcmd $identpass"
putlog "Identifying to $nickserv (as $botnick)"
}

all it does is an /msg nickserv identify
it does not send the password :(
any ideas?

greets!
Use a ":" in the PRIVMSG:

Code: Select all

puthelp "PRIVMSG $nickserv :$identcmd $identpass"
Perhaps this question can be promoted to a FAQ? (Although not a prominent one :) )

Note that if you are on DALNET, you must include the "host" of nickserv:

Code: Select all

set nickserv nickserv@services.dal.net
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

it could be done simplier
set nickserv "NS"
and then
puthelp "$nickserv :$identcmd $identpass"
instead of
puthelp "PRIVMSG $nickserv :$identcmd $identpass"

puthelp "$nickserv :$identcmd $identpass" = /ns identify pass
if it's for DALnet
s
sd-

Post by sd- »

thnx alot guys! it works like a charm now :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The above solution is not simpler, due to the fact, it simply just changing the command sent to the IRC server.

You might as well hard-code the command (NS), rather than coding variables to do this job.

However, the above changes are more secure.

While IRCD's today, have settings, and built-in functions, to prevent nickname stealing, and solcial engineering attacks, in a goal to steal passwords. There are still servers that do not, plus the fact, IRCD is freely available, thus old versions still remain. This means the possibility of such, still exists.

Using a specific command, like NS, will prevent this.
Locked