mIRC Home    About    Download    Register    News    Help

Print Thread
#134767 04/11/05 04:11 PM
Joined: Oct 2005
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2005
Posts: 10
Please help me confused
where is error ?
;------------------------------
only Show and control menualy debug msg.
Code:
 
alias dbg { debug -i dbug }

alias dbug {
if (PRIVMSG isin $1-)  {
echo -a this is "PRIVMSG" $1-
}
if (ACTION isin $1-)  {
echo -a this is "action"  $1-
}
if (SEX isin $1-)  {
echo -a Found BADWORD From:   $1-
}
}
}  

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
"only Show and control menualy debug msg"
^ pardon?

Possable things that may effect your script...
(1) u have an extra close } at the end
(2) a action doesnt have the word ACTION in it like that (i dont think so at least)
(3) you should be aware $1 contains ALL the information passed to dbug, while $1- well get you the same thing, there is no $2 $3 $4 etc

Joined: Dec 2004
Posts: 81
N
Babel fish
Offline
Babel fish
N
Joined: Dec 2004
Posts: 81
Your error relies in using /debug incorrectly.
Code:
/debug -i delog.log dbug


I found this way works.

#134770 06/11/05 12:53 AM
Joined: Oct 2005
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2005
Posts: 10
Thank u very much everb...


Link Copied to Clipboard