DesertBus/txircd — pull request #31 by Fugiman (2012-09-28 02:51:03+00:00)
Title: Enforce consistent style

* `sendMessage` should use parameters instead of string formatting. Final parameters (the ones starting with a colon) should be the only ones using string formatting.
* String formatting should be done with `"{}".format(var)`, not `"%s" % var`
* Strings should use double quotes `"` not single quotes `'` regardless of length
* Indentation is 4 spaces, no exceptions
* Channels are objects and should be accessed via attributes `cdata.mode`, not keys `cdata["mode"]`
* Always send back proper capitalization of nick or channel if it is a valid nick or channel
* Always use `sendMessage`, even when `irc.IRC` has a shortcut, so that we can explicitly set the prefix and ignore `irc.IRC.hostname`
* Stop refactoring everything and add new features dammit!