Amended on Thu 19 Jun 2003 08:40 AM (UTC) by Flannel
Message
Its late, so this is a bit fuzzy in my mind right now... but, possible solution would be to make a plugin, and have it automatically add a character to the line, using plugin callbacks.
[edit]
I should probably check for updates before I post... oh well.
Ah, I see. In that case, install this plugin, it will suppress blank lines. It uses the plugin callback OnPluginSend to detect and discard them ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<!-- Saved on Thursday, June 19, 2003, 6:25 PM -->
<!-- MuClient version 3.42 -->
<!-- Plugin "Suppress_Blank_Lines" generated by Plugin Wizard -->
<muclient>
<plugin
name="Suppress_Blank_Lines"
author="Nick Gammon"
id="020ea5e9855b555be70bcfe3"
language="VBscript"
purpose="Suppresses blank lines from being sent"
date_written="2003-06-19 18:24:57"
requires="3.31"
version="1.0"
>
</plugin>
<script>
Function OnPluginSend (sText)
If Trim (sText) = "" Then
OnPluginSend = vbFalse ' discard blank lines
Else
OnPluginSend = vbTrue ' process it
End If
End Function
</script>
</muclient>
Well, I made a script to use in Mushclient to function as a client for a certain chat room, which uses a unique protocol. Whenever a bad command is sent to the server it automatically bans you for 24 hours, and blank lines count as a bad command. So if I ever accidentally press enter, I'm banned for the whole day.
I can't seem to find a way for an alias to stop a blank line from being sent. My only alias is *, which I would hope would match everything that's ever typed in, but it doesn't match on a blank line. ^$ looks like it would work, but it doesn't either. I don't know a whole lot about regular expressions, could there be a better one that will work?
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.