$input bug - 07/07/04 09:42 PM
I think I may have found a bug with the $input identifier. According to the mIRC help file, it says:
Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.
Working $input example:
on *:START:{
.timer 1 1 $input(This is a test...,o,Test)
}
The above works fine, but if I try this example:
on *:SOCKOPEN:*:{
.timer 1 1 $input(This is a test...,o,Test)
}
mIRC will return:
-
* $input: cannot use in an event
-
Both events use the exact same code, the only difference is the events. This looks like a bug to me. I've tried the above with several events, and they all worked flawlessly. It seems that the on SOCKOPEN event is the culprit.
Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.
Working $input example:
on *:START:{
.timer 1 1 $input(This is a test...,o,Test)
}
The above works fine, but if I try this example:
on *:SOCKOPEN:*:{
.timer 1 1 $input(This is a test...,o,Test)
}
mIRC will return:
-
* $input: cannot use in an event
-
Both events use the exact same code, the only difference is the events. This looks like a bug to me. I've tried the above with several events, and they all worked flawlessly. It seems that the on SOCKOPEN event is the culprit.