anope/anope — pull request #39 by DanielOaks (2014-01-05 14:54:34+00:00)
Title: Add the channel name to reply of cs-status, useful for applications

This change makes cs/status return the channel name in replies. This is pretty useful for applications where you're seeing what privileges a user has on a channel, and the user submits multiple requests in a short time.

I can throw up a use case if needed, it's mostly in the space of trying to write an asynchronous way of checking whether a user is a founder of a specified channel. Without the channel name in the reply, an application would need to worry about not submitting two cs/status requests on two different channels at the same time, lest the replies get mixed up. With this info right in the reply, it's trivial for the application to submit multiple requests in a close space of time, without having to worry about getting the replies mixed up.