add support for sending commands to the server

Bug #531853 reported by Ricardo Kirkner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lalita
Won't Fix
Undecided
Unassigned

Bug Description

A method should be available in the API for sending commands to the server. Commands in irc start with /, but the 'say' method currently implemented cannot be used as it doesn't send the data in raw form to the server.

As a side-effect, by implementing a cmd method, lalita plugins could also issue /me commands making lalita behave more like a person.

Changed in lalita:
status: New → Confirmed
milestone: none → alpha
Revision history for this message
Facundo Batista (facundo) wrote :

Didn't found how to send "raw actions" from irc.IRCClient to the server.

Ideas?

Changed in lalita:
status: Confirmed → Incomplete
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

As far as I recall from my research at the time, this was not easy to implement. The only way to send commands to the server is to send the raw string directly. The /me command can be implemented specifically, but there is no simple way to implement generic command support, as each command has a different syntax and parsing.

Maybe we should just try to implement the /me command (which should have fairly good support), and forget about generic commands.

Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

Now that we have a bot proxy available from within the plugin, most commands are accessible to the plugin (join, leave, say, kick, ban, ...) and this bug can be superseeded by the other.

Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

Bug #593445 provides an equivalent solution to this issue.

Changed in lalita:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.