diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-02 08:47:59 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-02 08:47:59 +0100 |
commit | 591b1118913fa6aabb0dfc8e6c6e177d7216a48d (patch) | |
tree | cd60757226ae38478ea4f61e1b59d7d5466c2df7 /src/gui/gui-color.h | |
parent | 4af78fa4aab07d24709a0bb9b56fd870aacf2666 (diff) | |
download | weechat-591b1118913fa6aabb0dfc8e6c6e177d7216a48d.zip |
weercd.py: major code cleanup, full PEP8 compliance, replace %-formatting with .format()
All changes:
- import the new division operator and the print function
- replace the %-formatting with .format()
- full PEP8 compliance
- major code cleanup: new function send_cmd() to send an IRC command,
split flood() function into many functions.
The messages sent from a file (or stdin) are formatted with
".format(self=self)", so that attributes from class Client are replaced
with their values. You can use for example these attributes:
{self.nick} current client nick
{self.name} the server name ('weercd')
{self.version} the server version (version of weercd.py)
Diffstat (limited to 'src/gui/gui-color.h')
0 files changed, 0 insertions, 0 deletions