mIRC Home    About    Download    Register    News    Help

Print Thread
#100044 09/10/04 05:22 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Don't get this command confused with COM objects

I don't know if this command exist, but to my lazy eyes I cannot find it in /help =)

I was wondering if this could be another useless command that I figured would be nice to have on mIRC.
$comprefix would return what you have set for your command prefix in your mIRC options. Defult setting is / I believe, but since it can be changed then maybe have identifier to return what it is set at.

Maybe this would be useful for people who like to hack through mIRC which is pretty lame. They could use $comprefix to make sure that they are using the right command prefix, such as
on *:INPUT:*:*:{
if ($comprefix == $left($1,1)) {
.not.telling.you.the.rest.because.thats.bad.=0.
}
}


Live to Dream & Dream for Life
#100045 09/10/04 05:27 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
alias comprefix { return $readini($mircini,text,commandchar) }

on *:input:*:{
  if ($istok(/ $comprefix,$left($1,1),32)) { dostuff }
}


New username: hixxy
#100046 09/10/04 05:28 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Your reasoning behind adding a new identifier is to help those who 'hack through mIRC'? Why would we want that?

Regards,


Mentality/Chris
#100047 10/10/04 12:39 AM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
I didn't want to mean for it to be only for hacking from mIRC, I just said that becuase I was bored and it seemed to fill in some space. :|

This command would be great for other things. smile


Live to Dream & Dream for Life

Link Copied to Clipboard