|
|
Obelisk
|
Obelisk
|
i need help, wut i wanna do is have the visitors to my channel, have their .hmsk written to a file...here is wut i have please help me if you can...
on !1:join:#: /write Hostmasks.txt /dns $nick
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
on *:join:#://write Hostmasks.txt $address($nick,1)
1 can be changed to 1 - someodd # around 5
Last edited by MTec89; 03/08/03 04:31 PM.
|
|
|
|
pheonix
|
pheonix
|
[untested] (never used on dns, im just guessing thats how its done.)
on *:JOIN:#:{
/dns $nick
}
on *:DNS:{
if ($read(hostmask.txt,$+(*,$1-,*),*,w) == $null) {
/write hostmask.txt $nick - $1-
}
}
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
i dont mean to steal this post but i have a problem with write too
write -c $scriptdir $+ %fullfile
it dont write to $scriptdir
|
|
|
|
pheonix
|
pheonix
|
write -c $eval($scriptdir $+ %fullfile,2)
|
|
|
|
Obelisk
|
Obelisk
|
MTec89- Its okay, steal it..you helped me and its done now! /me bows down, "IM NOT WORTHY!" lol
Phoenix- I had that script b4 but it didnt work for some reason...
BTW...I would like to ping them and write that down too...can u add that somewhere??
Last edited by Obelisk; 03/08/03 04:41 PM.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
nah that didnt work either
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
glad i can help
|
|
|
|
pheonix
|
pheonix
|
try this.
write -c $eval($scriptdir $+ %fullfile,2) a
|
|
|
|
Obelisk
|
Obelisk
|
BTW...I would like to ping them and write that down too...can u add that somewhere??
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
nah.... what about that $+( thing or whatever?
|
|
|
|
pheonix
|
pheonix
|
on *:JOIN:#:{
.ping $nick
.write hostmask.txt $address($nick,1)
}
on *:PONG:*:{
echo -at $1-
}
or
on *:JOIN:#:{
.write hostmasks.txt $address($nick,1)
.ctcp ping $nick
}
on *:CTCPREPLY:PING:{
.echo -at $1-
}
Last edited by pheonix; 03/08/03 04:51 PM.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
on 1:CTCPREPLY:PING*:/write pings.txt $1-
or somthing like that --[untested]-- just put a ping command below the original write, in the other script
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
the $(...) thing, with commas
|
|
|
|
pheonix
|
pheonix
|
alias test { echo -a $+(h,ell,o) echo -a h $+ ell $+ o }
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
use /write $nick $1- and not just /write $1-
|
|
|
|
pheonix
|
pheonix
|
write -c $eval($+($scriptdir,%fullfile,.txt),2) a presuming its a text file.
Last edited by pheonix; 03/08/03 04:56 PM.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
ok, this is reeeally annoying...why doesnt this work for me?? write -c $+( $scriptdir , %fullfile )
i tried with and w/o spaces
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
%fullfile has the .html in it
|
|
|
|
|
|