James Vega
7bb3b1ec60
Merge the changes from the python25compat branch into the trunk
2009-03-11 13:37:24 -04:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
Jeremy Fincher
13e1f7ccb9
Added isSplit, a function for checking whether a given QUIT message is a split quit.
2005-02-25 09:59:39 +00:00
Jeremy Fincher
e6beec2989
Removed some more unused imports.
2005-02-04 03:11:02 +00:00
James Vega
de89bf0265
Update usage of utils.str functions.
2005-01-31 14:52:27 +00:00
James Vega
0a89623b70
Update a couple more imports for the utils split up and fix.py removal.
2005-01-30 15:39:39 +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
James Vega
5aa41afdcd
Add NICK handling to prettyPrint. Prepping for non-PRIVMSG Seen tracking
2004-12-30 02:43:21 +00:00
Jeremy Fincher
6bcae9309e
Added error helper function.
2004-12-15 07:01:50 +00:00
Jeremy Fincher
1932ed4d02
Slight bugfix in isCtcp.
2004-12-10 08:48:24 +00:00
Jeremy Fincher
ee145e7959
This is a far more reasonable implementation of __len__.
2004-12-04 18:42:48 +00:00
Jeremy Fincher
3f9c699ea2
Fix for bug in IrcMsg.__eq__.
2004-12-03 08:08:07 +00:00
James Vega
241243ba82
Change a couple more ircutils.is* to is*
2004-11-12 16:25:19 +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
Daniel DiPaolo
d4b30b6214
Added new behavior for Misc.last when nested - can optionally exclude the nick
...
and timestamp
2004-10-08 16:00:51 +00:00
James Vega
50973a10fb
Remove #! lines.
2004-09-20 03:01:50 +00:00
Jeremy Fincher
6393faf817
There can be CTCP notices as well.
2004-09-17 03:32:15 +00:00
Jeremy Fincher
9720b79a48
Changed tagging method.
2004-09-16 14:37:08 +00:00
James Vega
51ad408ff3
Use our newly annotated ircmsgs to enhance Misc.last's output.
2004-09-10 06:45:27 +00:00
Jeremy Fincher
91101978d5
Added IrcMsg attribute tagging, and used it in some places.
2004-09-09 15:33:57 +00:00
Jeremy Fincher
0cd0a44e7d
I honestly cannot believe that this wasn't caught sooner.
2004-08-30 06:02:57 +00:00
Jeremy Fincher
b6b22f7c23
Channel isn't necessary for NAMES.
2004-08-25 22:56:48 +00:00
Jeremy Fincher
d1884179b3
Added names function.
2004-08-25 22:50:24 +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
d36459ab0b
More spelling/capitalization normalization.
2004-08-19 13:33:34 +00:00
Jeremy Fincher
0f598271dc
Speeling fixes.
2004-08-18 23:15:27 +00:00
Jeremy Fincher
376e67def3
Added ison.
2004-08-17 16:58:47 +00:00
Jeremy Fincher
afc21c2afe
Added a comment for something that's easy to forget later.
2004-08-06 06:47:47 +00:00
Jeremy Fincher
fbe80ef138
Added limit commands.
2004-07-31 07:24:55 +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
a8a95c2ecc
Fixed the one-channel bug.
2004-07-30 22:35:51 +00:00
Jeremy Fincher
35bd48b9e8
I thought *args would be a list. Turns out it's not.
2004-07-27 23:33:22 +00:00
Jeremy Fincher
6cc8c29a6b
Added dcc, to build dcc privmsgs.
2004-07-27 09:52:14 +00:00
Jeremy Fincher
f9c61271ea
w00, less path mungingEXCLAIMEXCLAIM
2004-07-24 05:18:26 +00:00
Jeremy Fincher
0c38398a8d
Let's just make sure everythings a string.
2004-07-23 04:08:14 +00:00
Jeremy Fincher
4fdc49bb2b
Forgot one more newline.
2004-04-30 08:26:13 +00:00
Jeremy Fincher
0c5aaaadde
Fix for toXml.
2004-04-30 08:17:14 +00:00
Jeremy Fincher
8274d5dfb9
Fixed strictRfc appropriately.
2004-04-29 11:41:05 +00:00
Jeremy Fincher
fb46330ee7
Allowed for strings in ircmsgs.mode.
2004-04-27 10:50:53 +00:00
Jeremy Fincher
bd1dedb8e9
Added toXml.
2004-04-22 05:11:20 +00:00
James Vega
4b32a206c4
Add Seen trackers for PART, JOIN, QUIT (and fix ircmsgs.prettyPrint for QUIT)
2004-02-29 21:13:20 +00:00
Jeremy Fincher
de512b24de
Guarded asserts with strictRfc.
2004-02-24 11:21:12 +00:00
Jeremy Fincher
99926fd170
Added mode, and made sure to send one after joining a channel.
2004-02-17 18:12:01 +00:00
Jeremy Fincher
0c605c2163
Fixed invite, thanks lkn4it.
2004-02-11 05:14:44 +00:00
Jeremy Fincher
aa7408c09b
Changed over to the cool new RichReplyMethods stuff, mostly.
2004-01-07 19:09:24 +00:00
Jeremy Fincher
e4d9f6ded2
Added some asserts to the pluralized power message functions.
2003-12-03 20:48:44 +00:00
Jeremy Fincher
7f3cafbfbd
Fixed ops, deops, halfops, dehalfops, voices, and devoices.
2003-12-03 20:17:13 +00:00
Jeremy Fincher
48166f4895
Huge update to the logging infrastructure.
2003-11-26 18:21:12 +00:00
Jeremy Fincher
a4284e7924
Added __revision__ strings.
2003-11-25 08:38:19 +00:00
Jeremy Fincher
966a09437c
Fixed bug in isAction.
2003-11-21 22:13:18 +00:00
Jeremy Fincher
df88fc99d3
Removed an assertion that was asserting a condition that didn't need to be true.
2003-11-07 18:44:18 +00:00
Jeremy Fincher
ee24accaf7
Fixed bug in default argument for IrcMsg.__init__ -- args should default to (), not None.
2003-10-16 13:11:46 +00:00
Jeremy Fincher
6150a21ba3
Added an assert to unAction.
2003-10-14 00:39:54 +00:00
Jeremy Fincher
970c819e79
Changed fix.py to munge __builtins__ rather than requiring a "from fix import *" statement.
2003-10-05 12:47:19 +00:00
Jeremy Fincher
43e41f4c51
Minor updates.
2003-10-04 12:31:59 +00:00
Jeremy Fincher
71fcfb8db9
Deleted a few variables that shouldn't have been exported.
2003-10-04 12:29:58 +00:00
Jeremy Fincher
9092fb7b83
Fixed bug with lines not ending in \n because of the optimization added earlier, storing the original string form as originally received.
2003-09-22 11:04:39 +00:00
Jeremy Fincher
41339e80e7
Added an exception for malformed IRC messages and a little more error checking to the string parsing for IrcMsgs.
2003-09-17 18:21:35 +00:00
Jeremy Fincher
288f6179d6
Fixed a bug in the handling of the msg keyword argument in IrcMsg.
2003-09-17 07:53:11 +00:00
Jeremy Fincher
e02589c204
Added small optimization.
2003-09-17 07:32:02 +00:00
Jeremy Fincher
f95a804fe9
Changed asserts to show the repr() if they fail.
2003-09-09 20:44:58 +00:00
Jeremy Fincher
071f3916f8
Most IrcMsg.__hash__ were returning 0, because I was using & instead of ^
2003-09-08 20:29:02 +00:00
Jeremy Fincher
c45e38b537
Added ability to send empty topic messages to get the current topic.
2003-09-06 01:28:12 +00:00
Jeremy Fincher
ed92fcad2b
Changed to make 'too long a message' error messages less inaccurate.
2003-08-26 15:03:34 +00:00
Jeremy Fincher
e18bc38676
Fixed asserts to use the new 'all' predicate in fix.py.
2003-08-23 12:11:46 +00:00
Jeremy Fincher
710dcd71c6
Added the capability to specify a mask for the whois helper.
2003-08-21 16:53:19 +00:00
Jeremy Fincher
ca646716b1
Removed spaces at the end of lines.
2003-08-20 16:26:23 +00:00
Jeremy Fincher
2dd5a522d3
Changed nick/user/host of server hostmask to be the hostmask itself. Also disabled _ircmsg import for the time being.
2003-08-12 19:12:44 +00:00
Jeremy Fincher
39cce9c3af
Changed from 's.find(x) != -1' to 'x in s'
2003-08-11 17:16:03 +00:00
Jeremy Fincher
eb6fb90801
Removed the immutability checks in IrcMsg.
2003-08-11 06:57:17 +00:00
Jeremy Fincher
2c87c183b2
Optimized IrcMsg.__str__ slightly.
2003-08-11 05:08:33 +00:00
Jeremy Fincher
60fa81c268
Removed nick hack in IrcMsg; I never liked it anyway.
2003-08-10 11:25:03 +00:00
Jeremy Fincher
ade9514212
Added more documentation.
2003-08-02 06:22:13 +00:00
Jeremy Fincher
a4b6ee2028
Added caching for __str__, __repr__, and __len__.
2003-08-01 14:23:54 +00:00
Jeremy Fincher
d810fe37b0
TypoError.
2003-06-04 04:45:46 +00:00
Jeremy Fincher
bbb46497b5
TypoError.
2003-06-04 04:44:19 +00:00
Jeremy Fincher
93df6be0c3
TypoError.
2003-06-04 04:42:32 +00:00
Jeremy Fincher
f2ae4b5f34
Finally found the underlying cause of the relaynames bug.
2003-06-04 03:56:59 +00:00
Jeremy Fincher
c0c5101cd3
Changed to only strip \r\n from right side of last argument.
2003-05-21 17:52:23 +00:00
Jeremy Fincher
545f675ae4
Forgot to add prefix to IrcMsg in two functions.
2003-04-21 06:12:57 +00:00
Jeremy Fincher
9fee5f17a9
Again, run tests before committing.
2003-04-20 17:57:16 +00:00
Jeremy Fincher
df66715089
Oops...should run the tests before submitting new assertions :)
2003-04-20 17:28:26 +00:00
Jeremy Fincher
674fe77386
Added some asserts to match RFC more.
2003-04-20 07:17:40 +00:00
Jeremy Fincher
e3e7ce4625
Made assertions more useful.
2003-04-14 05:13:21 +00:00
Jeremy Fincher
33f76608fa
Fixed removal of leading whitespace on last argument in parsing messages.
2003-04-14 04:45:01 +00:00
Jeremy Fincher
67cbd8327d
Closed bug 715763, 'Several JOIN commands don't allow specification of a key'
2003-04-10 07:56:41 +00:00
Jeremy Fincher
584237d818
Added exception list support for ban and bans; changed the order of arguments in user; added password command
2003-04-06 12:26:35 +00:00
Jeremy Fincher
d708a6f6d4
Re-enabled __slots__ and added __getstate__, __setstate__
2003-04-05 10:40:36 +00:00
Jeremy Fincher
d6059ac71e
Added proper ValueError raising when there's no command in IrcMsg.__init__.
2003-04-05 10:28:30 +00:00
Jeremy Fincher
061f2e0a78
Added __ne__ method to IrcMsg
2003-04-04 09:12:00 +00:00
Jeremy Fincher
771f07529f
Fixed new bugs caused by assertions
2003-04-04 06:06:33 +00:00
Jeremy Fincher
ebdd969c7c
Added docstrings and assertions.
2003-04-03 22:06:24 +00:00
Jeremy Fincher
2ce7729916
Fixed minor style bug
2003-03-31 09:27:15 +00:00
Jeremy Fincher
848ec442c6
Whitespace normalization
2003-03-28 17:29:48 +00:00
James Vega
c803e5e9d8
Added vim:set ... : strings to source in order to keep file formatting
...
consistent between developers. Jeremy should be adding the equivalent
settings for emacs soon.
2003-03-24 08:41:19 +00:00
Jeremy Fincher
7801c84d84
Initial revision
2003-03-12 06:26:59 +00:00