mIRC Homepage
Posted By: EviL_SmUrF whats wrong with this code? iswm... - 11/01/04 05:59 AM
this is really bothering me.

take a look:

Code:
on *:snotice:*connecting*: {
  echo $1 $2 $3 $4 $5 $6 $7 $8 $9 $10
  if ($2 iswm *not*) {
    echo OK!
  }
}


what is wrong with that? It doesnt echo out the OK! like it is supposed to.

heres a sample of the output it gives in the echo $1 $2 $3 etc:

*** Notice -- Client connecting at irc.xtac.org: Marcy (~xtac@dhcp-202-109.cpe.gntrv.al.charter.com)

$2 = notice right? =/ well why isnt it matching it up on the iswm?
Posted By: Cheech Re: whats wrong with this code? iswm... - 11/01/04 06:36 AM
i cant get that notice to test it but try changing it to
if (*not* iswm $2)
Posted By: Hendon Re: whats wrong with this code? iswm... - 11/01/04 03:33 PM
raw *:*: {
window -in @Debug
echo $colour(normal) -m @Debug * $network $+ $iif($Network == $null,$server) $+ :4 $numeric  $+ - $1-
}

Try inserting this and echo your $2 to yourself. Confirm it corresponds.
Posted By: EviL_SmUrF Re: whats wrong with this code? iswm... - 11/01/04 05:37 PM
that didnt popup any window at all =/

how would i go about doing this?


Code:
on *:snotice:*connecting*: {
  echo $1 $2 $3 $4 $5 $6 $7 $8 $9 $10
}



it echo's it out,

but,

for some reason if ($8 iswm Guest*) or if (Guest* iswm $8) doesnt work at all =/
Posted By: neophyte Re: whats wrong with this code? iswm... - 12/01/04 02:54 AM
It won't work because *** Notice is simply mIRC telling you that it is a notice event.

$1 is actually the word Client, or even the two --


Also, you can use $1- to display all tokens, which is easier than doing $1 $2 $3, etc.
Posted By: _D3m0n_ Re: whats wrong with this code? iswm... - 12/01/04 09:38 PM
maybe these 2 lil notes will help you out

Code:
on *:SNOTICE:*Client connecting at*: { 
  echo -a  14«8×14»15«0»-. /¯(14 $8 has just connected from: $7 0 )¯\ .-«15»14«8×15» 
}

on *:SNOTICE:*Client connecting on*: { 
  echo -a  14«8×14»15«0»-. /¯(14 $9 has just connected from: $nick  0)¯\ .-«15»14«8×15» 
}


thats something i used in an Unreal ircd setup to see my client connects differnetly than mirc displayed, maybe that will give u a lil idea, or maybe not

alternativly, if u dont tell it where to echo to, its not going to popup a window so to make yours echo to a window named SNOTICE id change your code to something like this:


Code:
on *:SNOTICE:*connecting*: {  
  if $window(@snotice) == $null { window @SNOTICE | echo 12 -ti5 $1- }
  else { echo 12 -ti5 @SNOTICE $1- }
}


you dont need to specify all the number if u put a trailing - after the $1, unless for some reason u want to change the order of the text, but really it doesnt look like u need to. try that one i just dhowed u and see if that works for you. If not let me know and i can come up with something else, keep in mind u also have to creat that window before writting to it, thats why u need to check if its open before echoing to it, otherwise it echos to regularly open window.

© mIRC Discussion Forums