mIRC Homepage
Posted By: MTec89 notice - 24/03/04 07:54 PM
how can i send these messages to an @window, instead of flooding my status window?

to @DB
Code:
01:14.10> -irc.X.com- *** Global -- from services.X.net: Finish saving Channel database. 8 records saved
01:25.41> -irc.X.com- *** Global -- from services.X.net: Finish saving Memo database. 0 records saved
01:36.33> -irc.X.com- *** Global -- from services.X.net: Finish saving Nick Name database. 24 records saved

to @admin:
Code:
01:16.27> -irc.X.com- *** Global -- from X.gotdns.com: nick (blah@netadmin.X.gotdns.com) nick is now a network administrator (N)
01:17.54> -irc.X.com- *** Global -- from X.gotdns.com: nick (blah@netadmin.X.gotdns.com) nick is now a network administrator (N)
Posted By: tidy_trax Re: notice - 24/03/04 08:08 PM
Code:
on ^*:snotice:*:{ 
if !$window(@admin) { window @admin }
echo @admin $1-
haltdef
}
Posted By: MTec89 Re: notice - 24/03/04 08:46 PM
im trying to seperate the notices to 2 diff windows.. how do i do that? your puts them all in 1 window
Posted By: landonsandor Re: notice - 24/03/04 09:35 PM
how about something like this (not knowing the exact syntax of the line - if it's a nickname or not):

if (services.X.net isin $1-) { go here }
if (X.gotdns.com isin $1-) { go there }

OR

if (services.X.net == $n) { go here }
if (X.gotdns.com == $n) { go there }

does that help?? Replace $n with $1, $2 etc
Posted By: MTec89 Re: notice - 24/03/04 10:09 PM
my code:
Code:
on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB
    haltdef
  }
  elseif (uberwareznet.gotdns.com isin $1-) {
    if !$window(@admin) { window @admin }
    echo @admin $1-
    haltdef
  }
  elseif (musiKnet.ath.cx isin $1-) {
    if !$window(@admin) { window @admin }
    echo @admin $1-
    haltdef
  }
  elseif (irc.mtec89.com isin $1-) {
    if !$window(@admin) { window @admin }
    echo @admin $1-
    haltdef
  }
}


i get this:
@DB opens, it remains blank.
this is in status:
Code:
* /echo: insufficient parameters (line 25, script.ini)
-
05:02.59> -irc.mtec89.com- *** Global -- from services.uberwarez.net: Finish saving Channel database. 8 records saved
-


why does it not echo anything in @DB, and i get the error?
Posted By: landonsandor Re: notice - 24/03/04 10:17 PM
ok, redy for a stupid mistake I found?

on ^*:snotice:*:{
if (services.uberwarez.net isin $1-) {
if !$window(@DB) { window @DB }
echo @DB
echo @DB $1- <--- shouldnt this have a $1- ?? It's not echoing ANYTHING smile
haltdef
}
elseif (uberwareznet.gotdns.com isin $1-) {
if !$window(@admin) { window @admin }
echo @admin $1-
haltdef
}
elseif (musiKnet.ath.cx isin $1-) {
if !$window(@admin) { window @admin }
echo @admin $1-
haltdef
}
elseif (irc.mtec89.com isin $1-) {
if !$window(@admin) { window @admin }
echo @admin $1-
haltdef
}
}
Posted By: MTec89 Re: notice - 24/03/04 10:37 PM
hmm, how did i miss that :s thanks, ill letcha know if the rest of it works, that DB part works fine:) also admin part works fine:_|)

EDIT:::
---------
Code:
05:41.04&gt; -irc.mtec89.com- *** Notice -- Client connecting on port 6667: smokey (dIRC@63.229.24.19) [clients] 
-
05:41.06&gt; -irc.mtec89.com- *** Notice -- smokey (dIRC@netadmin.mtec89.com) [william] is now a network administrator (N)
-


how can i do that same for these?

the client connecting one, @clients, adn the admin one, @admin ?
Posted By: landonsandor Re: notice - 24/03/04 10:44 PM
it happens smile Also, another suggestion:

Code:

on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB $1- | haltdef
  }
  elseif ((uberwareznet.gotdns.com isin $1-) || (musiKnet.ath.cx isin $1-) || (irc.mtec89.com isin $1-)) {
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef
  }
}


No need for all those repetitive comparisons smile
Posted By: landonsandor Re: notice - 24/03/04 10:46 PM
OK, let's try this:



if (smokey*dIRC@63.229.24.19 iswm $1-) { echo stuff @clients etc }
if (smokey*dIRC@netadmin.mtec89.com iswm $1-) { echo stuff @admin etc }


How's this??? Does that work??
Posted By: MTec89 Re: notice - 24/03/04 10:53 PM
well, for one.. that would probably be incorrect, the thing your looking for is 1 user connection, and i want all the users connection messages to go to @clients
Posted By: landonsandor Re: notice - 24/03/04 10:56 PM
so how about:

if (clients isin $1-) {
if (Client*connecting iswm $1-) { do stuff }
other-stuff
}


how's that work?
Posted By: MTec89 Re: notice - 24/03/04 11:07 PM
it let the message go to the status window, like it always does, didnt open the window either
Code:
on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB $1- | haltdef
  }
  elseif ((uberwareznet.gotdns.com isin $1-) || (musiKnet.ath.cx isin $1-) || (irc.mtec89.com isin $1-)) {
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef
  }
  if (clients isin $1-) {
    if (Client*connecting iswm $1-) { 
      if !$window(@clients) { window @clients }
      echo @clients $1- | haltdef    
    }
  }
}
Posted By: landonsandor Re: notice - 24/03/04 11:13 PM
how about using the follow as your comparison:

(connecting*on*port iswm $1-)

Will that work?
Posted By: MTec89 Re: notice - 24/03/04 11:16 PM
i dont think that these are servier notices, maybe, i dont know.

Code:
06:14.25&gt; -irc.mtec89.com- *** Notice -- Client exiting: fish1209 (dIRC@63.229.24.19) []
-
06:14.34&gt; -irc.mtec89.com- *** Notice -- Client connecting on port 6667: fish1209 (dIRC@63.229.24.19) [clients] 
-
06:14.43&gt; -irc.mtec89.com- *** Notice -- fish1209 (dIRC@netadmin.mtec89.com) [william] is now a network administrator (N)
-

Code:
on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB $1- | haltdef
  }
  elseif ((uberwareznet.gotdns.com isin $1-) || (musiKnet.ath.cx isin $1-) || (irc.mtec89.com isin $1-)) {
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef
  }
  if (connecting*on*port iswm $1-) { 
    if !$window(@clients) { window @clients }
    echo @clients $1- | haltdef    
  }
}
Posted By: landonsandor Re: notice - 24/03/04 11:20 PM
/debug on

I dont know, when I join dalnet I get a lot of diff types of msgs and a lot of them are snotices and others are notices from services. Maybe try doing both at the same time?? So at the same time, try this:

on *:notice:*connecting*on*port*:*: {
if !$window(@clients) { window @clients }
echo @clients NOTICE $1- | haltdef
}

the NOTICE word is there to tell you which one actually caught the text smile i do that a lot (like NOTICE1 and NOTICE2 or SNOTICE and NOTICE etc - try it smile)
Posted By: MTec89 Re: notice - 24/03/04 11:23 PM
Syntax, Syntax, Syntax. thanks so much, ur a great help to me:)
Code:
on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB $1- | haltdef
  }
  elseif ((uberwareznet.gotdns.com isin $1-) || (musiKnet.ath.cx isin $1-) || (irc.mtec89.com isin $1-)) {
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef
  }
  elseif (*client*exiting* iswm $1-) { 
    if !$window(@clients) { window @clients }
    echo @clients $1- | haltdef    
  }
  elseif (*connecting*on*port* iswm $1-) { 
    if !$window(@clients) { window @clients }
    echo @clients $1- | haltdef    
  }
  elseif (*a*network*administrator* iswm $1-) { 
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef    
  }
}
Posted By: landonsandor Re: notice - 24/03/04 11:37 PM
woo hoo! go me!!! smile smile Glad I could be of help. I'll take a choc chip cookie or 17 out of petty cash smile
Posted By: MTec89 Re: notice - 25/03/04 01:21 AM
ok so is there a way to do this in mirc?
rihgt now, (the left side) has no divider.
the right side does have a divider (PhotoShoped)


Posted By: landonsandor Re: notice - 25/03/04 01:23 AM
Im gonna say not without a DLL but I havent a clue
Posted By: MTec89 Re: notice - 25/03/04 02:27 AM
how do i stop default dcc message? haltdef didnt werk
Posted By: landonsandor Re: notice - 25/03/04 02:29 AM
ctcp ^*:dcc*:/haltdef

hows about that?
Posted By: MTec89 Re: notice - 25/03/04 02:36 AM
smile thx again
Posted By: landonsandor Re: notice - 25/03/04 02:46 AM
anytime Mtec smile Next? ;-)
Posted By: MTec89 Re: notice - 25/03/04 02:49 AM
thats doesnt let dccs work.. at all..
Posted By: landonsandor Re: notice - 25/03/04 02:53 AM
on ^*:notice:*:*: {
if (dcc isin $1-) { echo $1- | halt }
}

This is the notice that tells you that there's a DCC coming smile try it
Posted By: MTec89 Re: notice - 25/03/04 03:04 AM
idk, thanks tho i got allot catagorized thanks to you:)
Posted By: landonsandor Re: notice - 25/03/04 03:07 AM
anytime smile I forgot that it was a basic notice message and forgot I wanted to manipulate this myself in my quite advanced PM/DCC blocker
Posted By: landonsandor Re: notice - 25/03/04 04:29 AM
one last thing:

Code:
on ^*:snotice:*:{ 
  if (services.uberwarez.net isin $1-) {
    if !$window(@DB) { window @DB }
    echo @DB $1- | haltdef
  }
  elseif ((uberwareznet.gotdns.com isin $1-) || (musiKnet.ath.cx isin $1-) || (irc.mtec89.com isin $1-) || (*a*network*administrator* iswm $1-)) {
    if !$window(@admin) { window @admin }
    echo @admin $1- | haltdef
  }
  elseif ((*client*exiting* iswm $1-) || (*connecting*on*port* iswm $1-)) { 
    if !$window(@clients) { window @clients }
    echo @clients $1- | haltdef    
  }
}


Once again, shortening the code smile
© mIRC Discussion Forums