mIRC Home    About    Download    Register    News    Help

Print Thread
#103783 25/11/04 02:22 AM
Joined: Sep 2004
Posts: 129
W
Wragg Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
i have this in aliases:

sc {
/set %chanscan $$?="Enter channel to scan (#mirc or &mirc):"
if (%hash isincs %chanscan) || (%and isincs %chanscan) {do stuff }
else { .echo -a You must specify channel type (# or &) | halt }
}

thing is that i whant to do that on input script to check
is there #channel given or &channel but not just "channel"

and it works ok, BUT when i input channel# or channel&, chan#nel or ch&annel (you got the point)
it will start "scanning" because it found & and # character in input and i wont to give blokade for it

i tried with !isincs (an i changet the code offcourse)
and i always got that /echo

now since there are some that think that "scan option" is not appropriate and they wont help...

well, it itsnt something illegal or something for using as "attack", and since i dont brake any rules on network with it, dunno what is so bad in this...

so if someone would help me i would apreciate it.

Last edited by Wragg; 25/11/04 02:57 AM.
#103784 25/11/04 03:27 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
  
sc {
  /set %chanscan $$?="Enter channel to scan (#mirc or &mirc):"
  if (%hash $+ * iswm %chanscan) || (%and $+ * iswm %chanscan) {do stuff }
  else { .echo -a You must specify channel type (# or &) | halt }
}
 


Try that (didnt test it) but i think its write
iswm wildcard string v1 matches string v2
you might even getaway with
if (#* iswm %chanscan) || (&* iswm %chanscan) {do stuff }
actually

#103785 25/11/04 03:31 AM
Joined: Sep 2004
Posts: 129
W
Wragg Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
thank you so much !!!

edit: btw is there more channel types beside # and & ??

Last edited by Wragg; 25/11/04 03:32 AM.
#103786 25/11/04 07:15 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Depends on the network, you can look at the value $chantypes returns to determine this

#103787 25/11/04 09:28 AM
Joined: Sep 2004
Posts: 129
W
Wragg Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Sep 2004
Posts: 129
yes, i know it can bee sen from CHANTYPES in raw004 or 5
but i am asking if anyone encountered another types beside # and & coz i havent... ?


Link Copied to Clipboard