mIRC Home    About    Download    Register    News    Help

Print Thread
#272803 18/07/24 05:42 PM
Joined: Apr 2005
Posts: 122
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 122
on ^1:snotice:*:{
if !$window(exists) { window -lke @notice 516 200 2182 1134 }
if $1 iswm "Client connecting" { aline 4 @notice $1 ( $5 ) $6 $7 $9 | halt }
elseif $1 iswm operserv { .echo -a ee  }
}

i want to do replace the original text for my

itsw good the code?

XGamerAMD #272804 18/07/24 08:57 PM
Joined: Jul 2014
Posts: 327
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 327
I didn't realize if your code is working or if I just wanted an opinion, but try it like this:
Code
on ^1:snotice:*:{
  if (*Client connecting* iswm $1) {
    if (!$window(@notice)) { window -lke @notice 516 200 2182 1134 }
    aline @notice $1 ($5) $6 $7 $9
    halt
  }
  else {
    if (Operserv iswm $1) { echo -a $1- }
  }
  haltdef
}


TECO
irc.PTirc.org (Co-Admin)
TECO #272814 19/07/24 05:18 PM
Joined: Apr 2005
Posts: 122
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 122
thnx for the code

XGamerAMD #272817 19/07/24 11:35 PM
Joined: Nov 2021
Posts: 110
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 110
For wich ircd is this? And should it only work for local connections or remote ones as well (if u have ircds linked)?

XGamerAMD #272821 20/07/24 12:44 PM
Joined: Nov 2021
Posts: 110
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 110
on ^1:snotice:*Client connecting*:{
if (!$window(@notice)) { aline @notice $1 ($5) $6 $7 $9 }
else { window -lke @notice 516 200 2182 1134 }
elseif (Operserv iswm $1) { echo -a $1- }
haltdef
}

XGamerAMD #272822 20/07/24 12:50 PM
Joined: Nov 2021
Posts: 110
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 110
there is a mistake in my posted code this should be more proper
Code

on ^1:snotice:*Client connecting*:{
    if (!$window(@notice))  { 
   window -lke @notice 516 200 2182 1134 
   aline @notice $1 ($5) $6 $7 $9  
}
   else { aline @notice $1 ($5) $6 $7 $9 }
   elseif (Operserv iswm $1) { echo -a $1- }
   haltdef
}


Simo #272827 21/07/24 07:46 AM
Joined: Apr 2005
Posts: 122
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 122
thnx for this!!!!!!!

XGamerAMD #272828 21/07/24 12:48 PM
Joined: Nov 2021
Posts: 110
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 110
altho notices coming from OperServ arent snotices (server notices) they are regular notices so i think u need to use the regular notice event for that.

Code

ON ^1:snotice:*Client connecting*:{
    if (!$window(@notice))  { 
   window -lke @notice 516 200 2182 1134 
   aline @notice $1 $+($chr(40),$5,$chr(41)) $6 $7 $9  
}
   else { aline @notice $1 $+($chr(40),$5,$chr(41)) $6 $7 $9 }
   haltdef
}

 ON *:notice:*:*:{  if ($regex($nick,/^(OperServ)$/i)) { echo -a $+($chr(40),$nick,$chr(41)) : $1-  } }


Last edited by Simo; 21/07/24 01:39 PM.

Link Copied to Clipboard