mIRC Home    About    Download    Register    News    Help

Print Thread
bug in timers??? #927 10/12/02 05:36 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
it's an alias
/protect /timer1 0 3600 /mode #funsite.be +mnt

to set every hour the channel settings to +mnt

but it do nothing

if i do
/protect /timer1 0 3600 /msg $chan test

I say every hour "test" in that channel ....
what's the problem ??? It's just the same thing ...

Re: bug in timers??? #928 10/12/02 05:40 PM
Joined: Dec 2002
Posts: 164
M
Merlin Offline
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
1. /protect is a command in mIRC - read /help /protect
2. Are you sure you have +o in the channel? Channel mode changes requires Operator status smile


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Re: bug in timers??? #929 10/12/02 06:46 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
I have changed the /protect command and i'm sure i have +o but it is a problem with the server ... on other server it seems to work ....

Re: bug in timers??? #930 10/12/02 08:15 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If those modes are already set, some IRCd's will show you attempt to set them again, others won't - are you sure that's not the problem?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: bug in timers??? #931 10/12/02 09:53 PM
Joined: Dec 2002
Posts: 24
D
DarkStarX Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
Umm...if I'm not mistaken:

$chan is set when a channel related event is fired, and cannot be used in an alias. Wouldn't it be $null?

Regards,


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Re: bug in timers??? #932 10/12/02 10:04 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
That's the problem I think smile

Re: bug in timers??? #933 11/12/02 01:52 AM
Joined: Dec 2002
Posts: 24
D
DarkStarX Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
That's not a bug though smile
$chan refers to the channel that the fired event occured in. A timer is a mIRC based object..global if you will, and does not occur in a channel.

Regards,


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Re: bug in timers??? #934 11/12/02 07:45 AM
Joined: Dec 2002
Posts: 208
C
Cobra Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
just to clearify

although i dont recomend useing $chan and such in aliases, but rather simply sending the proper parms to them, you CAN use them in aliases provided that the aliases are called by an event :P

and even in timers in aliases that are called by an event where $chan will resolve as the $chan identifer will resolve before the timer is set .. although in this case, the alias was not called by an event so obviously $chan would be $null

Cobra^

Re: bug in timers??? #935 11/12/02 08:26 PM
Joined: Dec 2002
Posts: 32
S
SyN Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 32
I'd suggest any alias use $1 and pass the $chan as a param from the event.

as for an alias being named the same as a mirc internal command that is ok as custom aliases have precedence over mircs internal commands. the opposite being true for internal identifiers and custom identifiers.


It's only called insanity if you're poor.
I stay alive to spite those that wish me dead.