mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
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?

Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i cant get that notice to test it but try changing it to
if (*not* iswm $2)

Joined: Jan 2003
Posts: 28
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 28
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.


===================================
Live my life for a day.. I'll show you where I've been.
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
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 =/

Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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.


--------
mIRC - fun for all the family (except grandma and grandpa)
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
maybe these 2 lil notes will help you out

Code:
on *:SNOTICE:*Client connecting at*: { 
  echo -a  14814150-. /(14 $8 has just connected from: $7 0 )\ .-1514815 
}

on *:SNOTICE:*Client connecting on*: { 
  echo -a  14814150-. /(14 $9 has just connected from: $nick  0)\ .-1514815 
}


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.



D3m0nnet.com

Link Copied to Clipboard