$inpaste bug? - 02/11/05 11:17 PM
To reproduce this you will have to:
* Uncheck Multi-line editboxes under Options -> Display -> Options.
* Enable Confirm when pasting 10 or more lines of text under Options -> Other -> Confirm.
Enter the following code into Remote:
Now go and paste 10 lines in a channel using ctrl+v:
You should get a dialog asking you if you really want to paste that many lines. Click Yes with the mouse[/b]. It will echo $true which is what we want.
Now paste the same 10 lines but instead of clicking Yes with the mouse press Enter on your keyboard. It will now echo $false!
* Uncheck Multi-line editboxes under Options -> Display -> Options.
* Enable Confirm when pasting 10 or more lines of text under Options -> Other -> Confirm.
Enter the following code into Remote:
Code:
on *:INPUT:#:{ echo -ag $inpaste }
Now go and paste 10 lines in a channel using ctrl+v:
Code:
one two three four five six seven eight nine ten
You should get a dialog asking you if you really want to paste that many lines. Click Yes with the mouse[/b]. It will echo $true which is what we want.
Now paste the same 10 lines but instead of clicking Yes with the mouse press Enter on your keyboard. It will now echo $false!