Age | Commit message (Collapse) | Author |
|
|
|
n1-n2
|
|
n1-n2
|
|
from Tom Alsberg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The -D/--destination-dir displays a warning for non HTML doc (so for
man page). So the man page is copied to the build directory before
being built.
|
|
|
|
(evaluated string)
|
|
|
|
string_eval_expression and command /eval
|
|
|
|
|
|
(patch #8204) (patch from Nils Görs)
|
|
|
|
|
|
warnings)
|
|
|
|
|
|
warnings)
|
|
|
|
initialized
|
|
warnings)
|
|
initialized
|
|
warning about default values used
|
|
is already displayed)
|
|
|
|
warning is already displayed)
|
|
|
|
(and not on read error with existing file)
|
|
|
|
prevent highlight on it (bug #40516)
|
|
supports more nick prefixes than the previously connected server
|
|
|
|
|
|
ChangeLog/NEWS
|
|
|
|
asciidoc files
|
|
|
|
.format()
|
|
|
|
|
|
|
|
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)
|
|
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).
|
|
|