|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
how can i send these messages to an @window, instead of flooding my status window? to @DB
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:
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)
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
on ^*:snotice:*:{
if !$window(@admin) { window @admin }
echo @admin $1-
haltdef
}
New username: hixxy
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
im trying to seperate the notices to 2 diff windows.. how do i do that? your puts them all in 1 window
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
my 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:
* /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?
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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  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 } }
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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::: ---------
05:41.04> -irc.mtec89.com- *** Notice -- Client connecting on port 6667: smokey (dIRC@63.229.24.19) [clients]
-
05:41.06> -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 ?
Last edited by MTec89; 24/03/04 10:46 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
it happens  Also, another suggestion:
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
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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??
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
so how about:
if (clients isin $1-) { if (Client*connecting iswm $1-) { do stuff } other-stuff }
how's that work?
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
it let the message go to the status window, like it always does, didnt open the window either
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
}
}
}
Last edited by MTec89; 24/03/04 11:10 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
how about using the follow as your comparison:
(connecting*on*port iswm $1-)
Will that work?
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
i dont think that these are servier notices, maybe, i dont know.
06:14.25> -irc.mtec89.com- *** Notice -- Client exiting: fish1209 (dIRC@63.229.24.19) []
-
06:14.34> -irc.mtec89.com- *** Notice -- Client connecting on port 6667: fish1209 (dIRC@63.229.24.19) [clients]
-
06:14.43> -irc.mtec89.com- *** Notice -- fish1209 (dIRC@netadmin.mtec89.com) [william] is now a network administrator (N)
-
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
}
}
Last edited by MTec89; 24/03/04 11:17 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
/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  i do that a lot (like NOTICE1 and NOTICE2 or SNOTICE and NOTICE etc - try it  )
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
Syntax, Syntax, Syntax. thanks so much, ur a great help to me:)
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
}
}
Last edited by MTec89; 24/03/04 11:24 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
woo hoo! go me!!!  Glad I could be of help. I'll take a choc chip cookie or 17 out of petty cash
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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)
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
Im gonna say not without a DLL but I havent a clue
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
how do i stop default dcc message? haltdef didnt werk
|
|
|
|
|