mIRC Home    About    Download    Register    News    Help

Print Thread
#90841 17/07/04 09:18 PM
Joined: Jan 2004
Posts: 25
D
djdj Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2004
Posts: 25
can someone help me with this ones?
what is wrong?:
first prob:
on ^*:MODE:#:{
echo # 00D04S02> 12 $+ $timestamp 07 $+ $nick(#,$nick) 13changed channel mode to: 14 $+ $1-
haltdef
}

2nd prob:
I have this on Join event, too...
it will not popup the topic!

on ^*:JOIN:#:{
if ($nick == $me) {
echo # 00D04S02> 03You ( $+ $me $+ ) have joined  $+ # {
if ($chan(#).topic == $null) { echo # 00D04S02> 03There are no topic in # }
else { echo # Topic is ' $+ $chan(#).topic $+ ' by $nick }
}
haltdef
}
else { echo # 00D04S02> 12 $+ $timestamp 09 $+ $nick 13has joined # }
haltdef
}

someone plz help! :tongue:


Thax
#90842 17/07/04 10:49 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
1. Your code is fine but it will not process modes that are handled by other events (op, voice, ban etc). Change mode to rawmode and everything will be caught.

2. See explanations here and here, and a solution here.

#90843 18/07/04 11:48 AM
Joined: Jan 2004
Posts: 25
D
djdj Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2004
Posts: 25
sorry, the on mode event worked fine...
tnx 4 your help!


Thax
#90844 18/07/04 06:33 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on join for yourself triggers before you get the topic from the server.


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard