|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
can someone fix this, cose this shows my information, not the information of the one that just joined... echo # ¤ 0Nick: $nick <---this is OK echo # ¤ 0Address: $address <---this is OK on !*^:join:#: {
if ($nick == $me) {
}
else {
echo # 0[ $+ $time $+ ] [JOIN] $nick
echo # ..12WHOIS:..................................
echo # ¤ 0Nick: $nick
echo # ¤ 0Address: $address
echo # ¤ 0Server: $server
echo # ¤ 0Host: $host
echo # ¤ 0IP: $ip
echo # ...............................................
}
haltdef
}
|
|
|
|
Joined: Mar 2004
Posts: 359
Fjord artisan
|
Fjord artisan
Joined: Mar 2004
Posts: 359 |
on !*^:join:#: {
if ($nick == $me) {
}
else {
echo # 0[ $+ $time $+ ] [JOIN] $nick
echo # ..12WHOIS:..................................
echo # ¤ 0Nick: $nick
echo # ¤ 0Address: $address
echo # ¤ 0Server: $server
echo # ¤ 0Host: $host
echo # ¤ 0IP: $ip
echo # ...............................................
}
haltdef
}
You said only $nick and $address were fine but i'd rather use something like $address($nick,2) for $address and for $time, something like $time(hh:nn:ss TT) $server returns what server your on $host returns your hostmask $ip returns your ip
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
$server returns what server your on $host returns your hostmask $ip returns your ip
i know this, i wanna know how to get this info from the one that has joined....
|
|
|
|
Joined: Mar 2004
Posts: 359
Fjord artisan
|
Fjord artisan
Joined: Mar 2004
Posts: 359 |
type /debug @debug then whois someone and get the raws for what you want, then /help raw events
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
Babel fish
Joined: Jan 2005
Posts: 75 |
Raw 301:*:{ if (%whois) %whois.away = $3- | halt }
Raw 307:*:{ if (%whois) %whois.regd = $2 - is a registered nick | halt }
Raw 310:*:{ if (%whois) %whois.oper = $2- | halt }
Raw 311:*:{ %whois = 1 | %whois.nick = $2 | %whois.uhost = $3 $+ @ $+ $4 | %whois.wname = $6- | %whois.ip = $4 | halt }
Raw 312:*:{ if (%whois) %whois.serv = $3- | halt }
Raw 313:*:{ if (%whois) %whois.oper = $2- | halt }
Raw 317:*:{ if (%whois) %whois.idle = $3- | %whois.sign = $4- | halt }
Raw 318:*:{ if (%whois) { _whois } | unset %whois | halt }
Raw 319:*:{ if (%whois) { unset %whois.chan | %whois.chan = $3- | halt } }
alias _whois {
if (%whois.nick) {
echo -a 00,15 $+ $str($chr(160),7) $+ $str($chr(160),13) 10———————————— | echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 nick 01|10 %whois.nick 09(10 $+ $replace(%whois.uhost,@,09@10,-,09-10,.,09.10) $+ 09) 01(10 $+ $ccode($gettok(%whois.ip,-1,46)) $+ 09) | echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 name 01|10 %whois.wname
echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 chan 01|10 $replace(%whois.chan,~,09~10,&,09&10,@,09@10,%,09%10,+,09+10,.,09.10)
if (%whois.serv) echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 serv 01|10 $replace($gettok(%whois.serv,1,32),.,09.10,-,09-10) 09(10 $+ $gettok(%whois.serv,2-,32) $+ 09)
if (%whois.away) echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 away 01|10 %whois.away
if (%whois.idle) echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 idle 01|10 $dur($gettok(%whois.idle,1,32)) $+ 09,10 signed in on 09(10 $+ $lower($asctime(%whois.sign,dddd dd mmm h:nntt)) $+ 09)
if (%whois.regd) echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 regd 01|10 $replace(%whois.regd,-,09-10)
if (%whois.oper) echo -a 11,15 $+ $str($chr(160),2) $+ whois $+ $+ $str($chr(160),15) $+ 10 oper 01|10 %whois.oper
echo -a 00,15 $+ $str($chr(160),7) $+ $str($chr(160),13) 10————————
}
unset %whois.*
}
on !*^:join:#: {
if ($nick == $me) { halt }
.whois $nick
}
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
What a mess we have here. $nick and $address will be fine. Whois data is retrieved by Raw events which is why it wont work. $ip returns your IP. IP is dealt with Raw 328. You can only see their IP if you are an IRCop. Try this.
On ^!*:Join:#: {
.enable #whoisnick
set %chan $chan
whois $nick
}
#whoisnick off
Raw 301:*: {
echo %chan ¤ 0Away: $3-
haltdef
}
Raw 307:*: {
set -u10 %nick.status Yes
haltdef
}
Raw 308:*: {
haltdef
}
Raw 311:*: {
set -u10 %w.nick $2
set %address $3 $+ @ $+ $4
echo %chan 0[ $+ $time $+ ] [JOIN] $nick
echo %chan ..12WHOIS:..................................
set %orig1 $numtok(%address,46)
echo %chan ¤ 0Nick Name: $2 $+
echo %chan ¤ 0Real Name: $6- $+
echo %chan ¤ 0Address: $3 $+ @ $+ $4 $+
haltdef
}
Raw 328:*: {
echo %chan ¤ 0IP: $7
haltdef
}
Raw 309:*: {
echo %chan ¤ 0Language: $7
haltdef
}
Raw 312:*: {
echo %chan ¤ 0Connected to: $3
echo %chan ¤ 0Server name: $4-
haltdef
}
Raw 317:*: {
echo %chan ¤ 0Idle: $duration($3)
echo %chan ¤ 0Been connected: $duration($calc($ctime - $4))
if (%nick.status == Yes) {
echo %chan 0Status: Registered Nickname
set -u10 %w.nick $2
echo %chan ...............................................
unset %address
unset %orig1
.disable #whoisnick
}
else {
echo %chan ¤ 0Status: Normal User
set -u10 %w.nick $2
echo %chan ...............................................
unset %address
unset %orig
unset %orig1
.disable #whoisnick
}
haltdef
}
Raw 319:*: {
echo %chan ¤ 0Channels: $3-
haltdef
}
Raw 325:*: {
echo %chan ¤ 0Profanity: Profanity filter enabled.
haltdef
}
Raw 334:*: {
haltdef
}
Raw 313:*: {
set -u10 %priv1 $5
set -u10 %priv2 $6
haltdef
}
Raw 310:*: {
set -u10 %w.ircop $3-
echo %chan ¤ 0IRCop: %priv1 %priv2 ( $+ %w.ircop $+ )
haltdef
}
#whoisnick end
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on [color:blue]![/color]*^:join:#: {
[color:green]if ($nick == $me) { halt }[/color]
.whois $nick
}
When using the ! we don't need to use: if ($nick == $me) { halt }We already check if it isn't us that's joining.
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
wow, nice only one problem [16:03:19] [JOIN] warszawa.irc.pl <--- how can i set this so that it shows the nick (it shows my the server that i use at the moment) i think that the problem is here, cose if i remove this line, the [16:03:19] [JOIN] warszawa.irc.pl part doesnt even apear.. : echo %chan 0[ $+ $time $+ ] [JOIN] $nick but it looks ok..... EDIT: ow, forget that, i got it working TNX to everyone
Last edited by Ratzor; 22/02/05 03:10 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Yeah my bad... Try:
echo %chan 0[ $+ $time $+ ] [JOIN] %w.nick
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
one more question: how can i make, that when i whois somebody, it shows me a whois just like that i use ecliptica BlackWhite theme...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Here ya go: /whois <nick>
alias whois {
.query $1
.enable #whois
.whois $1
}
#whois off
Raw 301:*: {
echo %w.nick ¤ 0Away: $3-
haltdef
}
Raw 307:*: {
set -u10 %nick.status Yes
haltdef
}
Raw 308:*: {
haltdef
}
Raw 311:*: {
set -u10 %w.nick $2
set %address $3 $+ @ $+ $4
echo %w.nick ..12WHOIS:..................................
set %orig1 $numtok(%address,46)
echo %w.nick ¤ 0Nick Name: $2 $+
echo %w.nick ¤ 0Real Name: $6- $+
echo %w.nick ¤ 0Address: $3 $+ @ $+ $4 $+
haltdef
}
Raw 328:*: {
echo %w.nick ¤ 0IP: $7
haltdef
}
Raw 309:*: {
echo %w.nick ¤ 0Language: $7
haltdef
}
Raw 312:*: {
echo %w.nick ¤ 0Connected to: $3
echo %w.nick ¤ 0Server name: $4-
haltdef
}
Raw 317:*: {
echo %w.nick ¤ 0Idle: $duration($3)
echo %w.nick ¤ 0Been connected: $duration($calc($ctime - $4))
if (%nick.status == Yes) {
echo %w.nick 0Status: Registered Nickname
set -u10 %w.nick $2
echo %w.nick ...............................................
unset %address
unset %orig1
.disable #whois
}
else {
echo %w.nick ¤ 0Status: Normal User
set -u10 %w.nick $2
echo %w.nick ...............................................
unset %address
unset %orig
unset %orig1
.disable #whois
}
haltdef
}
Raw 319:*: {
echo %w.nick ¤ 0Channels: $3-
haltdef
}
Raw 325:*: {
echo %w.nick ¤ 0Profanity: Profanity filter enabled.
haltdef
}
Raw 334:*: {
haltdef
}
Raw 313:*: {
set -u10 %priv1 $5
set -u10 %priv2 $6
haltdef
}
Raw 310:*: {
set -u10 %w.ircop $3-
echo %w.nick ¤ 0IRCop: %priv1 %priv2 ( $+ %w.ircop $+ )
haltdef
}
#whois end
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You're welcome man.
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
1 problem: i restarted irc, now i se both whoises (the old and the new one) [07:01] ——————————————————————-—-——————
[07:01] Whois:
[07:01] Info:
..WHOIS:..................................
¤ Nick Name:
¤ Real Name:
¤ Address:
[07:01] Channels:
¤ Channels:
[07:01] Server ::
¤ Connected to:
¤ Server name: ok, that problem is fixed (i use the defoult theme now) here's a nother problem : when someone joins or when i whois somebody, the whois shows also in status window... (btw, i removed the .quote part....)
Last edited by Ratzor; 22/02/05 06:49 PM.
|
|
|
|
Joined: Feb 2005
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2005
Posts: 24 |
ok, i've solved all problems :P tnx again for all your help
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 185 |
Is there anyway that it can just state the channel that the user is on?
at the minute i have it so that when some one joins it will state there lastnick and clone if any, then underneath that i would like it to state all the channels ie,
· · Joins XX [XX@sg-33881.demon.co.uk] [Clones: XXXX] [Last Nick: XXX] . . Channels: #mIRC #Webdesign #Info
sub-zero.homeip.net:6667
|
|
|
|
|