summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2014-02-07weercd.py: use /usr/bin/env in python shebangSebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-11-02weercd.py: major code cleanup, full PEP8 compliance, replace %-formatting ↵Sebastien Helleu
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)
2013-10-27weercd.py: use argparse module to parse command line arguments, remove ↵Sebastien Helleu
config file The configuration file weercd.conf has been removed. Instead, default options can be set in an environment variable called "WEERCD_OPTIONS". A file with options can be used, then name must be given as option with a leading "@", for example: python weercd.py @args.txt The option "action" has been removed. Default behavior is still to flood the client. Actions "user" and "file" have been merged into a single option -f/--file, which accepts a file, or special value "-" to read stdin. The script now requires python >= 2.7 (because the argparse module is not available in python 2.6 and older versions).
2013-08-02core: rename binary and man page from "weechat-curses" to "weechat" (task ↵Sebastien Helleu
#11027) A symbolic link weechat-curses -> weechat is now created (by both cmake and configure), so that the /upgrade will work from an old version. However, if you upgrade from an old version, it is recommended to force the use of the new binary name with the command: `/upgrade /path/to/weechat` (replace the path accordingly).
2013-01-01core: update copyright datesSebastien Helleu
2012-10-17weercd.py: add action "file" and option "file"Sebastien Helleu
2012-08-22weercd.py: add option "nickused" (send some messages 433 before accepting nick)Sebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-05-07weercd.py: fix typo, add action in weercd.confSebastien Helleu
2011-05-06weercd.py: add option "action": "flood" = flood client, "user" = send custom ↵Sebastien Helleu
messages to client
2011-03-05weercd.py: read PART command sent by clientSebastien Helleu
2011-02-22weercd.py: fix read of config file with python 3.xSebastien Helleu
2011-02-07Remove unneeded spacesSebastien Helleu
2011-01-23Add weercd.py, the WeeChat flood irc serverSebastien Helleu