mIRC Home    About    Download    Register    News    Help

Print Thread
#66864 06/01/04 11:26 PM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
Ive been trying to get op notices for a room goto a custom window then have an on input. I cant catch the op notice Ive tried playing around with raw and what not cant seem to get it any ideas?


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#66865 06/01/04 11:42 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:
/debug @debug
/onotice test
/notice @#Doqnach test

-> London.UK.Eu.Netgamers.org NOTICE @#Doqnach :test

this is the raw line

<- :Doqnach[AWAY]!tlhingan@Doqnach.users.netgamers.org NOTICE @#Doqnach :@ test

this is what you get in

so just make an
on ^*:NOTICE:#: {
  if ($left($target,1) == @) {
    if (!$window(@onotice)) { window @onotice }
    echo @onotice this is an OPNOTICE
    haltdef
  }
} 

Last edited by Doqnach; 06/01/04 11:48 PM.

If it ain't broken, don't fix it!
#66866 06/01/04 11:45 PM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
doesnt work it reads the first thing as the first word in the message


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#66867 06/01/04 11:47 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
if you want you can join my channel and I can help you figure this out (the code should work... I don't do anything with text in this snippet... I just look up the target and check the first character agains the @ sign used for onotice)


If it ain't broken, don't fix it!
#66868 07/01/04 03:18 AM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
on *:NOTICE:*:#: {
if ($target == $+(@,$chan)) {
if (!$window($+(@,onotice_,$chan))) window -n $+(@,onotice_,$chan)
aline -p $+(@,onotice_,$chan) $fulldate $+($chr(60),$nick,$chr(62)) $1-
}
}

For my onotice, I created an alias called opnotice

alias opnotice {
if (!$window($+(@,onotice_,$chan))) window -n $+(@,onotice_,$chan)
aline -p $+(@,onotice_,$chan) $fulldate $+($chr(60),$me,$chr(62)) $1-
onotice $1-
}


Link Copied to Clipboard