mIRC Home    About    Download    Register    News    Help

Print Thread
#100876 17/10/04 10:25 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
is there any way i could make it so if someone says
!whois <nick>
and the bot will return what you would get
this is what i got so far..
on *:text:*:#: {
if ($$1 == !whois) {
whois $$2
msg $chan
}
:error msg $chan ERROR: $error
}

it dosent return anything at all
could anyone help me?

#100877 18/10/04 01:07 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
on *:text:!whois *:#:{
if (($2) && (!$3)) {
enable #returnwhois
set %channel $chan
whois $2
}
}
#returnwhois off
raw 311:*: msg %channel $2-
raw 378:*: msg %channel $2-
raw 307:*: msg %channel $2-
raw 319:*: msg %channel $2-
raw 313:*: msg %channel $2-
raw 317:*: msg %channel $2-
raw 318:*: disable #returnwhois | unset %channel
#returnwhois end

Whois replies are based on unrealircd 3.2-beta15.

Just a note to those wondering why i don't use the [ $+ code $+ ] codes on the forum, its cuz it severly screws up the new lines so i perfer not to use it.


Link Copied to Clipboard