Code: Select all
## -NS- Account information for hitshy:
## -NS- Registered on: Sat Jul 30 13:21:23 2005
## -NS- Last seen: Right now!
## -NS- Infoline: None
## -NS- Email address: hitshy@msn.com
## -NS- Flags: +hc
## -NS- Epithet: a Webmaster
## -NS- Last quit hostmask: hitshy@208.98.5.219
## -NS- Nickname(s): Hitshy dean
## -NS- Hostmask(s): *@*
## -NS- Channel(s): 100:#snoopy 300:#opers 499:#NutShells 499:#music 100:#monitor 500:#leb ## -498:#lady 2:#jabal 400:#gudy ## 100:#exempt 500:#Druze 300:#Beirut 499:#a7la3alam
## -NS- Current nickname(s): hitshy
set scriptchannel "#helpers"
bind pub -|- .accountinfo script:text
bind notc -|- "*Account information*" script:notices
bind notc -|- "*Registered on*" script:notices1
bind notc -|- "*Last seen: Right*" script:notices2
bind notc -|- "*Infoline*" script:notices3
# bind notc -|- "*Email address*" script:notices4
# bind notc -|- "*Flags*" script:notices5
# bind notc -|- "*Epithet:*" script:notices6
# bind notc -|- "*Last quit hostmask*" script:notices7
# bind notc -|- "*Nickname(s):*" script:notices8
# bind notc -|- "*Hostmask(s):*" script:notices9
# bind notc -|- "*Channel(s):*" script:notices10
# bind notc -|- "*Current nickname(s)*" script:notices11
proc script:text { nick host handle chan text } {
global botnick
set text [split $text]
set text [lindex $text 0]
if {$text == ""} {puthelp "NOTICE $nick :You need to supply a nickname."; return}
putserv "PRIVMSG ns :accountinfo $text"
}
proc script:notices {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set username [lindex $text 3]
}
proc script:notices1 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set rdate [lrange $text 2 end]
}
proc script:notices2 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set lastseen [lrange $text 2 end]
}
proc script:notices3 {nick uhost hand text dest} {
global scriptchannel username rdate lastseen
set text [split $text]
set infoline [lindex $text 1]
putserv "PRIVMSG $scriptchannel :$username $rdate $lastseen"
}
proc script:notices4 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set email [lindex $text 2]
}
proc script:notices5 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set rflags [lindex $text 1]
}
proc script:notices6 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set Epithet [lrange $text 1 end]
}
proc script:notices7 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set lastquit [lindex $text 3]
}
proc script:notices8 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set rnicknames [lrange $text 1 end]
}
proc script:notices9 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set rhost [lindex $text 1]
}
proc script:notices10 {nick uhost hand text dest} {
global scriptchannel
set text [split $text]
set rchannels [lrange $text 1 end]
}
proc script:notices11 {nick uhost hand text dest} {
global scriptchannel username rdate lastseen infoline email rflags Epithet lastquit rnicknames rhost rchannels
set text [split $text]
set currentnick [lindex $text 2]
putserv "PRIVMSG $scriptchannel :$username $rdate $lastseen $infoline $email $rflags $Epithet $lastquit $rnicknames $rhost $rchannels"
}
putlog "ns info script loaded by iamdeath.."
Code: Select all
[17:16] <Help> [14:16] -NS (NS@service.beirut.com)- Account information for Stefano:
[17:16] <Help> [14:16] -NS (NS@service.beirut.com)- Registered on: Thu Apr 7 12:55:19 2005
[17:16] <Help> [14:16] -NS (NS@service.beirut.com)- Last seen: Right now!
[17:16] <Help> [14:16] Tcl error [script:notices3]: can't read "rdate": no such variable
[17:16] <Help> [14:16] -NS (NS@service.beirut.com)- Infoline: ... FORZA ITALIA !!! ...
I fixed it
