Commit Graph

54 Commits

Author SHA1 Message Date
Daniel Folkinshteyn
a6d361573d Fix banmask creation. Thanks Progval for the patch!
fixes https://sourceforge.net/tracker/?func=detail&aid=3088559&group_id=58965&atid=489447

incorporating patch https://sourceforge.net/tracker/?func=detail&aid=3163843&group_id=58965&atid=489449
2011-01-24 16:09:18 -05:00
James Vega
f7cedae9ad Update ircutils.standardSubstitute to use string.Template
In the process, deprecate utils.str.perlVariableSubstitute.

Since string.Template doesn't support callable values though, we also
sub-class IrcDict and override __getitem__ to call the value if it is
callable.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-15 22:16:29 -04:00
James Vega
5c197471c6 Fix the tests for mircColor and sorted (Thanks dcraven) 2007-05-08 18:40:48 +00:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Jeremy Fincher
cede4a4a97 Fixed bug in ircutils.isNick, which allowed nicks to start with dashes. 2005-08-02 02:47:42 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
895cd3e48e Resurrected the test suite with the new supybot-test program and RCS. 2005-01-23 19:42:25 +00:00
Jeremy Fincher
3d3b1498fe Changed copyright years on test files 2005-01-24 21:27:34 +00:00
Jeremy Fincher
8ca625d339 Initial import. 2005-01-19 13:14:38 +00:00
James Vega
dbfec8afb9 Add supybot module 2007-04-22 20:10:26 +00:00
Jeremy Fincher
3736f6d582 I wrote this to show someone an example of a test, but figured I'd commit it since it's written. 2005-01-04 03:46:55 +00:00
James Vega
23397b44b4 Remove #! lines. 2004-09-20 15:25:47 +00:00
Jeremy Fincher
59d084abef Added a test for isnick always rejecting spaces in nick. 2004-09-13 00:42:10 +00:00
Jeremy Fincher
fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
Jeremy Fincher
127e9f3ccf Fixed a bug in stripFormatting. 2004-08-08 02:07:11 +00:00
James Vega
115a3a88ec move isCtcp to ircmsgs and fix up a couple things with Infobot 2004-07-31 03:45:25 +00:00
Jeremy Fincher
f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
Jeremy Fincher
a4386a6798 Updated to make mircColors an IrcDict, and clean up the limplementation of mircColor function. 2004-07-22 22:30:24 +00:00
Jeremy Fincher
c064aa1155 Let's make sure to zfill those digits before we mircColor. 2004-07-22 20:57:46 +00:00
James Vega
315810d08e yay! no more stray whitespace 2004-07-21 19:36:35 +00:00
Jeremy Fincher
2377a4a83c Automatically convert non-strings to strings with safeArgument. 2004-07-19 22:33:58 +00:00
Jeremy Fincher
8274d5dfb9 Fixed strictRfc appropriately. 2004-04-29 11:41:05 +00:00
James Vega
e87c31aea4 ircutils.strip{Bold,Reverse,Underline,Formatting} 2004-04-15 21:15:57 +00:00
James Vega
0027117e8c Fix some coloring/formatting bugs we had 2004-04-13 01:01:17 +00:00
James Vega
b2153c83fb unColor is now working. Added a colorstrip outfilter to Filter to close RFE
#863599
2004-04-09 03:59:12 +00:00
Jeremy Fincher
bfd5066ec9 Added some more better handling for channel modes. 2004-02-16 03:44:11 +00:00
Jeremy Fincher
487fb3cc2f Made separateModes int the argument if it can. 2004-02-16 00:51:29 +00:00
Jeremy Fincher
5d3a3437db Fixed G-LiTe's bug with -l. 2004-02-11 06:57:35 +00:00
Jeremy Fincher
9def8a49bd Hmm, didn't define keys. 2004-02-05 07:32:20 +00:00
Jeremy Fincher
fd132f20ad Added setdefault and get to IrcDict. 2004-01-19 22:29:55 +00:00
Jeremy Fincher
29426e2f1d Moved isIP* to utils from ircutils. 2004-01-16 17:33:51 +00:00
Jeremy Fincher
6645679cd5 Removed a flaky, useless test. 2004-01-07 18:39:12 +00:00
Jeremy Fincher
a0d2a9da2a Fixed bug #863808; added isIPV6. 2004-01-02 20:50:43 +00:00
Jeremy Fincher
3f6d347e2b Added isCtcp. 2003-12-10 18:49:45 +00:00
Jeremy Fincher
95fc4532aa Added some tests for hostmaskPatternEqual. 2003-12-03 22:33:20 +00:00
Jeremy Fincher
2a9d9d1b5d Reworked so there's no double-import problem. 2003-12-02 12:27:45 +00:00
Jeremy Fincher
c8de1e8155 Made the string of flags that require an argument an optional argument so you can parse the flags for some other purpose. 2003-12-01 21:59:01 +00:00
Jeremy Fincher
6004181695 Fixed bug in banmask when the host doesn't have a dot in it (rare, but possible). 2003-11-13 19:00:35 +00:00
Jeremy Fincher
3f8c149047 Fixed major bugz0rs with IrcSet and IrcDict. 2003-11-04 05:50:19 +00:00
Jeremy Fincher
9c2a8121ec Fixed bug in isNick. 2003-10-22 01:40:27 +00:00
Jeremy Fincher
155aeebe42 Added dccIP and unDccIP. 2003-10-09 16:12:53 +00:00
Jeremy Fincher
8eed3f0982 Stupid __eq__ not being used in __ne__... 2003-10-09 05:46:35 +00:00
Jeremy Fincher
ce0002f454 Made IrcString more efficient/better, added a test for it. 2003-10-09 05:34:44 +00:00
Jeremy Fincher
7081d64124 Added test for IrcSet. 2003-09-23 15:52:36 +00:00
Jeremy Fincher
f0816d56a7 Changed bold and mircColor to use the right ender \x0F. 2003-09-03 09:46:06 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
Jeremy Fincher
2c6f505bea Added vim modelines. 2003-08-17 22:13:10 +00:00
Jeremy Fincher
2a4c2ea185 Nuked ircutils.nick. Good riddance. 2003-08-12 19:12:12 +00:00
Jeremy Fincher
5ec5b997ca Made safeArgument handle colors correctly. 2003-08-01 23:48:02 +00:00
Jeremy Fincher
7a281d5e4b Fixed some mircColors indiscretions and added a test for the new (proper) behavior. 2003-07-25 04:00:38 +00:00