Re: [dev] sic - remove stdout formatting?

From: Claudio M. Alessi <smoppy_AT_gmail.com>
Date: Tue, 20 Oct 2009 14:02:06 +0200

On Mon, Oct 19, 2009 at 04:04:12PM -0400, Josh Rickmar wrote:
> I would like to (re)write an irc bot using sic, but the formatted output
> is making this harder then it could/should be. For example, the first
> field, the channel or irc server, is cut off at 12 characters by a
> colon. This becomes a problem when trying to parse the output because
> longer field names can be cut off. It can also cause the number of
> fields (seperated by whitespace) to change since a field with >=12
> characters will be missing a space between the name and the colon.
>
> To make this program more useful, wouldn't it be better if all the
> information was presented to the user? Doing so would make writing bots
> much easier and would allow the user to easily format the output any way
> he/she wants to by passing sic's output to awk.
>
> Josh Rickmar
>
+1

It would be better to customize output using sic in pipe with an ad-hoc tool
(likely the most useful is awk). There's no need to formatting the output, also
why the actual sic output is not much more formatted than the original text
sent by the server, it's just a bit reordered. It also would be nice to avoid
commands like 'j' or 'l' which could easily be replaced by the original "join"
and "part" commands, removing few (useless?) LOCs. Apart from this, sic is the
perfect IRC client (and it's said by an old weechat user :-P).

Regards,
Claudio M. Alessi

-- 
JID: smoppy AT gmail.com
WWW: http://cma.teroristi.org
Received on Tue Oct 20 2009 - 12:02:06 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 12:12:02 UTC