James McCoy
8b73f78b3e
Merge branch 'maint/0.83.4'
...
Conflicts:
plugins/Misc/plugin.py
src/ircutils.py
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-11-13 15:26:19 -05:00
Daniel Folkinshteyn
8f7c4bdf7f
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
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-10-22 14:25:26 -04:00
James Vega
543e78828b
Add utils.net.isIPV4, with utils.net.isIP checking v4 or v6
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2011-06-06 21:44:15 -04:00
Jeremy Fincher
6135a88741
Updates and tweaks to some ircutils functions.
2010-05-18 12:48:36 -05:00
Daniel Folkinshteyn
51eac7da5b
add standardsubstitute vars 'utc' and 'gmt' which output current time in UTC.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-11 17:01:11 -04:00
Daniel Folkinshteyn
2c9f325cf4
fix some time display issues in standardsubstitute:
...
first, use explicit time.strftime() instead of time.ctime, since ctime() leaves an extra space between month and date, if date is
single-digit.
second, use stftime('%Z') for timezone, old code was a bug which always displayed the daylight saving timezone name, even when it wasn't
in effect. time.daylight is not a dst flag, it is a flag for whether a dst timezone is /defined/, not if it is in effect.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-11 17:00:50 -04:00
Jeremy Fincher
5f9d2bc4ce
We had an issue with a command flooder, so we've tightened command flood detection to detect things on a per-host basis, rather than a per-user@host basis.
2009-12-28 12:26:33 -06: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
Štěpán Němec
a66034f852
Fix some typos/wordings.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-08-26 16:34:12 -04:00
James Vega
bb759259b8
Remove useless comments and fix a SyntaxError
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-03 10:04:39 -04:00
Jeremy Fincher
dd4bc64e32
Changed a few caches to use CacheDict to ensure no without-bound growth on caches.
2009-04-02 11:45:00 -05:00
James Vega
07be8cd2c0
src/ircutils.py: A nasty hack around mIRC's broken color code rules. Must specify a foreground color if a background color is being specified, so we'll default it to white.
2006-05-25 19:52:16 +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
James Vega
aefcd594df
Move structures to utils/
2005-03-12 18:01:47 +00:00
James Vega
0fde2393e6
Update usage of utils.iter functions.
2005-01-31 15:22:48 +00:00
Jeremy Fincher
5fd6bbb52d
Completely restructured our utils modules.
...
Tons of changes. Here's the summary of things that matter most:
* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
* It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary. It's
premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon. That'll be the
next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
5019d10a1b
Updated license years.
2005-01-19 13:33:05 +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
6d9cc6855d
Updated some docstrings.
2004-12-20 19:19:29 +00:00
Jeremy Fincher
aa83ab2420
Removed an XXX.
2004-12-16 09:02:55 +00:00
Jeremy Fincher
eac5d2f9f8
Added a couple asserts.
2004-12-06 22:42:34 +00:00
Jeremy Fincher
e688faf16e
Moved standardSubstitute to ircutils.
2004-10-27 01:37:19 +00:00
Jeremy Fincher
39ab3459de
Removed a dumb valueerror.
2004-10-26 19:09:43 +00:00
James Vega
cbd5abbab7
A bunch more %r -> %s conversions as well as wrap updates, new policy for
...
Channel.voice and some bug fixes for Debian
2004-10-25 22:59:03 +00:00
Jeremy Fincher
a0c0d833e3
Let's make channellen parameterizable as well.
2004-10-15 11:20:51 +00:00
Jeremy Fincher
26771923f6
Allow None in IrcDict and InsensitivePreservingDicts.
2004-10-01 21:25:01 +00:00
James Vega
50973a10fb
Remove #! lines.
2004-09-20 03:01:50 +00:00
Jeremy Fincher
1ba0fccd34
Slight tweak to make a test in test_Channel.py pass.
2004-09-16 14:29:13 +00:00
Jeremy Fincher
e44f7ab50c
Fixed bug #1019387 . Again.
2004-09-14 17:12:21 +00:00
Jeremy Fincher
934363db10
Added some __repr__ action.
2004-09-14 15:38:49 +00:00
Jeremy Fincher
39f427d4be
Even when not strict, spaces can't be in nicks.
2004-09-12 05:48:36 +00:00
Jeremy Fincher
db7940089b
Added FloodQueue.
2004-09-08 22:49:08 +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
966129c9a3
A docstring doesn't hurt much.
2004-08-21 08:02:52 +00:00
Jeremy Fincher
d36459ab0b
More spelling/capitalization normalization.
2004-08-19 13:33:34 +00:00
Jeremy Fincher
6bd8d43c28
PyChecker updates.
2004-08-10 22:09:23 +00:00
Jeremy Fincher
127e9f3ccf
Fixed a bug in stripFormatting.
2004-08-08 02:07:11 +00:00
Jeremy Fincher
823bfb040f
Added utils.AtomicFile and converted our uses of 'w' to it. This rocks.
2004-07-31 10:21:07 +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
a3e04ea9e8
Handled some XXXs.
2004-07-31 00:46:26 +00:00
Jeremy Fincher
a8a95c2ecc
Fixed the one-channel bug.
2004-07-30 22:35:51 +00:00
Jeremy Fincher
61793a489c
Added the new buttkicking enable/disable.
2004-07-29 09:46:22 +00:00
Jeremy Fincher
bfa2382aae
Slight doc/style updates.
2004-07-28 16:42:39 +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
Jeremy Fincher
9e6a3ed094
Fixed bug #960696 .
2004-07-22 16:16:01 +00:00