Commit Graph

451 Commits

Author SHA1 Message Date
James McCoy
02c0d0ce3c Merge branch 'check-umodes' 2011-10-29 17:25:57 -04:00
James McCoy
b23480b915 irclib: Filter out unsupported umodes before sending them to the server
Closes: Sf#3075891
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-10-29 17:22:42 -04:00
James McCoy
c9e548bdd9 irclib: Add support for 004 messages from the server
At a minimum, the message gives us the server name, ircd version, supported
umodes, and supported channel modes.  Add the umodes and channel modes to
self.supported.

Some IRCds (e.g., hybrid and ircd-seven) have an extra arg which seems to be
the channel modes that require arguments.

Signed-off-by: James McCoy <vega.james@gmail.com>
2011-10-29 17:22:27 -04:00
Valentin Lorentz
e253fe1543 Allow network-specific nicks. Closes GH-134. 2011-10-27 12:31:37 +02:00
nyuszika7h
ca502c6814 irclib.py: Added network name to SASL authentication success/fail. 2011-09-13 19:55:01 +02:00
nyuszika7h
dcaefbdcf5 Add SASL support to core. 2011-09-13 11:07:52 +02:00
Jeremy Fincher
b774268498 Added network to debug "Incoming message" log. 2009-12-28 12:17:27 -06:00
James Vega
56ba12aa4b Add support for UltimateIRCd's ! (protected) user mode.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-23 19:20:02 -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
Jeremy Fincher
fa9a9cb04d Ensured logging of error messages with unrecognized numeric codes. Fixes SR #1859821, but nothing can rectify freenode's idiocy completely. 2009-03-12 14:04:55 -05:00
Jeremy Fincher
9f3bc9d355 IrcCallback's super() doesn't take any args. 2009-03-11 13:37:25 -04:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Jeremy Fincher
dca3a3c099 Minor style tweak. 2006-01-12 03:57:10 +00:00
James Vega
0b83f017d9 src/irclib.py: Document the protected/channel owner patch 2005-11-30 16:02:09 +00:00
Marius Rieder
cbb5b7aaa2 protect_and_chanowner_in_unrealircd
Add protectet users (&) und the channelowner (~) used in unrealircd to the ops list.
2005-11-01 04:49:23 +00:00
Jeremy Fincher
603cab6b0a Loaded plugins during __init__ rather than do001. 2005-08-15 05:37:05 +00:00
Jeremy Fincher
27656e5fef Added a few more asserts and clarified an already existing one. 2005-08-15 05:36:23 +00:00
James Vega
a3149f0ec0 src/irclib: If the post-inFilter message differs from the pre-inFilter message, log it for debugging purposes. 2005-08-04 21:19:41 +00:00
James Vega
6f8e3d37aa src/irclib: Let's not override the name for the set type. 2005-07-10 18:27:40 +00:00
James Vega
bd31b7f596 src/irclib: Handle IRCds which use a MAXLIST-style value for the MAXBANS 005 key. 2005-06-29 14:20:54 +00:00
Jeremy Fincher
4e4c23a781 Removed the "All channels synced ..." message since it's not entirely accurate with our new JOIN ratelimiting. 2005-05-18 14:35:57 +00:00
Jeremy Fincher
9aaba996b3 Changed log message for 433 to be more accurate when a 432 is encountered. 2005-05-18 05:23:38 +00:00
Jeremy Fincher
0b848199b5 Fixed some style issues with logging calls. 2005-05-18 04:18:35 +00:00
Jeremy Fincher
1d357dd470 Some more slight tweaks to the MetaFirewall implementation and stuff. 2005-05-15 17:08:02 +00:00
Jeremy Fincher
2861b5a334 Fixed some uselessness in log.MetaFirewall and removed an attribute that shouldn't be firewalled (it was vestigial). 2005-05-15 16:50:10 +00:00
Jeremy Fincher
b48ca7ab71 Added supybot.protocols.irc.queuing.rateLimit.join, to throttle joins. 2005-04-14 01:35:35 +00:00
Jeremy Fincher
73f639b55f Changed supybot.protocols.irc.refuseToQueueDuplicateMessages to supybot.protocols.irc.queuing.duplicates. 2005-04-14 00:56:26 +00:00
Jeremy Fincher
0773aa31e5 Made Proxy Irc objects map to the same dictionary slot, so we don't need to worry about calling getRealIrc all the time. 2005-03-28 13:00:37 +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
Jeremy Fincher
51637b3b00 Forgot this from the nested plugins changes. 2005-02-28 07:59:46 +00:00
James Vega
2408457221 Fix a bug with a missing argument for string formatting. 2005-02-23 16:40:21 +00:00
James Vega
90c000793d utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace. 2005-02-15 13:57:57 +00:00
Jeremy Fincher
46225641bd Changed the implementation of IrcMsgQueue a bit. 2005-02-09 05:30:14 +00:00
Jeremy Fincher
476a620fe4 Fixed possible error when the returned message includes formatting characters. 2005-02-07 05:43:27 +00:00
Jeremy Fincher
6b75be6e60 Changed supybot.protocols.irc.queueDuplicateMessages.
Changed supybot.protocols.irc.queueDuplicateMessages to
supybot.protocols.irc.refuseToQueueDuplicateMessages, and changed the default
to be to allow duplicate messages, rather than to reject them.
2005-02-03 20:13:49 +00:00
Jeremy Fincher
f930913b05 Removed the sets import from irclib.py. 2005-02-03 19:17:26 +00:00
James Vega
68d3b830da Remove the use of format() in logger functions since they handle it natively. 2005-02-01 13:43:57 +00:00
James Vega
0fde2393e6 Update usage of utils.iter functions. 2005-01-31 15:22:48 +00:00
James Vega
de89bf0265 Update usage of utils.str functions. 2005-01-31 14:52:27 +00:00
James Vega
28cb5abc65 Update usage of functions in utils.gen. 2005-01-31 13:06:43 +00:00
Jeremy Fincher
c08d435267 Fixed bug in irclib.IrcState's handling of KICK messages; they wouldn't remove the channel if the bot was kicked from it. 2005-01-28 13:58:59 +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
f63fa6846f Elucidating comment, XXX, and hopefully a fix for the problems with using Network.disconnect while a socketDriver is reconnecting. 2005-01-10 20:41:23 +00:00
Jeremy Fincher
bc5e7de336 Let's try this location for our placement of a dynamic channel. 2004-12-17 06:02:10 +00:00
Jeremy Fincher
aa83ab2420 Removed an XXX. 2004-12-16 09:02:55 +00:00
Jeremy Fincher
c73ca6941b Send an error message to plugins on disconnect. 2004-12-15 07:03:39 +00:00
Jeremy Fincher
265d620a0e Changed a warning log to info. 2004-12-10 06:29:23 +00:00
Jeremy Fincher
8eaec18a5e Fix for broken test_Topic. 2004-12-07 01:16:06 +00:00
Jeremy Fincher
58c631bd8f Yes, we do. 2004-12-07 00:27:47 +00:00
Jeremy Fincher
e24943b0c7 Some extra methods for ChannelState; code should now use these methods instead of directly accessing .{ops,voices,halfops}. 2004-11-30 04:43:09 +00:00
James Vega
1e159fb386 Add an XXX 2004-11-12 16:25:35 +00:00
Jeremy Fincher
89e52c3ea9 Changed a log from WARNING to DEBUG. 2004-11-05 14:56:32 +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
c256a3d275 Fix for uncaught exception in IrcState.addMsg. 2004-10-24 07:59:54 +00:00
Jeremy Fincher
a238ed6298 Fixed TODO #1047283. 2004-10-22 06:21:34 +00:00
Jeremy Fincher
724b612f52 Only try to ping if we're not a zombie. 2004-10-22 05:57:50 +00:00
Jeremy Fincher
678c012bc6 Looks like I just reordered some methods. 2004-10-15 11:21:20 +00:00
Jeremy Fincher
25224a79a1 Added a logging message. 2004-10-12 11:40:56 +00:00
Jeremy Fincher
c2759270ee Changed the queuing messages to DEBUG, there's no need for users to care. 2004-10-10 04:20:32 +00:00
Jeremy Fincher
04f7ff313f Commented out a bug (IrcState, actually in Irc), #1040008. 2004-10-09 04:02:22 +00:00
Jeremy Fincher
0dc88e88b9 Some source code tweakings; I still don't know why that test fails, but it's a good reminder that we should use the copy method instead of the copy.copy function. 2004-10-03 08:50:45 +00:00
Jeremy Fincher
d499628075 Refactoring of some MODE handling stuff and now we keep track of bans. 2004-09-29 18:52:15 +00:00
Jeremy Fincher
cc15862d65 Had the formatters for that log swapped. 2004-09-29 14:49:44 +00:00
Jeremy Fincher
c2445cc7db Fixed bug in IrcState.doTopic (#1033955) 2004-09-29 14:14:06 +00:00
Jeremy Fincher
e616f6973d We should return whether or not we were able to queue the message. 2004-09-28 07:17:53 +00:00
Jeremy Fincher
ec7ba362c4 Slight log message change. 2004-09-24 14:37:24 +00:00
Jeremy Fincher
243456aedd Unnecessary reset, changed logging message. 2004-09-24 02:36:34 +00:00
Jeremy Fincher
5dd099c459 CAPAB should always be an important message. 2004-09-21 18:38:20 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
James Vega
e2bb35e02a Fix for bug #1030492, overriding IrcUser.auth's list with a tuple 2004-09-19 23:23:35 +00:00
Jeremy Fincher
f69b87a93a %.2f 2004-09-16 16:20:58 +00:00
Jeremy Fincher
9720b79a48 Changed tagging method. 2004-09-16 14:37:08 +00:00
Jeremy Fincher
9be4fd112d Finally got topological sorting working. 2004-09-16 10:28:59 +00:00
Jeremy Fincher
ee4768634f Changed to __lt__ instead of __cmp__ -- it's simpler and doesn't screw with equality. 2004-09-10 07:27:42 +00:00
Jeremy Fincher
76056e35e4 Let's handle non-IrcCallbacks for sorting. 2004-09-10 07:10:35 +00:00
Jeremy Fincher
c573ab5996 New plugin prioritization method. 2004-09-10 06:30:21 +00:00
Jeremy Fincher
5ac4c8c481 No more unsets. 2004-09-09 18:58:56 +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
b3dfdd1ed5 More supported crap. 2004-09-08 22:48:32 +00:00
Jeremy Fincher
61e09d453a Better handling of umodes. 2004-08-30 06:58:47 +00:00
Jeremy Fincher
ffddc953e2 Let's try this for the connection problem bugs. 2004-08-29 06:51:36 +00:00
Jeremy Fincher
4d60937c69 Let's try this for the connection problem bugs. 2004-08-29 06:49:50 +00:00
Jeremy Fincher
32b3bce635 Let's die immediately if we've not finished connecting. 2004-08-29 05:52:33 +00:00
Jeremy Fincher
613a855d78 Changed some log messages. 2004-08-29 05:45:28 +00:00
Jeremy Fincher
003d7d4ecc Added a configuration variable for user modes. 2004-08-28 06:10:09 +00:00
Jeremy Fincher
afce0547e1 Added watch and caught some possible errors. 2004-08-27 09:11:28 +00:00
Jeremy Fincher
8f3d3908d2 Slight tweak to message. 2004-08-27 07:12:27 +00:00
Jeremy Fincher
9c73c57089 Channel sync logs and some other minute tweaks. 2004-08-27 06:46:28 +00:00
Jeremy Fincher
f7094ae7b9 Added a few more little madoodles to supported stuff. 2004-08-27 04:32:15 +00:00
Jeremy Fincher
f2fd7c9e66 oops, got this reversed. 2004-08-26 04:43:19 +00:00
Jeremy Fincher
23eb75f33b Another bug. 2004-08-25 23:23:51 +00:00
Jeremy Fincher
86b49eccb2 Bugz0r. 2004-08-25 23:19:07 +00:00
Jeremy Fincher
5f5e79135f For some reason, when I searched for do353 earlier, it didn't come up. Now it turns out that it should've...who knows. 2004-08-25 23:14:00 +00:00
Jeremy Fincher
ea1ddf1880 353 handling in IrcState. 2004-08-25 23:04:18 +00:00
Jeremy Fincher
914ecddaf1 Added 005 handling to IrcState. 2004-08-24 22:15:56 +00:00
Jeremy Fincher
b7e030f5e3 Elucidating comment. 2004-08-23 13:03:46 +00:00
Jeremy Fincher
038705c5c9 Some cleanups in preparation for being multi-server without Relay. 2004-08-23 12:28:26 +00:00
Jeremy Fincher
bd3e056be4 Let's not try to queue our connect messages if we're zombie. 2004-08-20 22:11:48 +00:00
Jeremy Fincher
9d320188d1 Let's stop the double kill. 2004-08-20 04:37:18 +00:00
Jeremy Fincher
4e10d65b56 Not self.log, foos. 2004-08-20 03:45:58 +00:00
Jeremy Fincher
64b7d0d735 Quit messages actually go through now. 2004-08-19 20:32:07 +00:00
Jeremy Fincher
0f598271dc Speeling fixes. 2004-08-18 23:15:27 +00:00
Jeremy Fincher
b22e3c44e2 Changed supplyDefault to _supplyDefault and added %s handling for supybot.nick.alternates. 2004-08-17 20:43:25 +00:00
Jeremy Fincher
b6f03a42b4 We shouldn't send a new nick in response to 433 when we've already connected. 2004-08-17 15:20:59 +00:00
Jeremy Fincher
e1cf38f171 Handle QUIT properly in IrcState. 2004-08-17 08:29:56 +00:00
Jeremy Fincher
3cf02c85a6 Better stupid nick resolution scheme. 2004-08-17 08:07:47 +00:00
Jeremy Fincher
697249dc4e supybot.protocols.irc.queueDuplicateMessages 2004-08-05 08:09:18 +00:00
Jeremy Fincher
a5e473bba2 Updated to make sure Relay doesn't break dying. 2004-08-02 11:38:53 +00:00
Jeremy Fincher
e03c3ecf0a Oops, got a debugging print in there. 2004-07-31 08:46:07 +00:00
Jeremy Fincher
e64444ce56 Fixed some bad calls to setMode. 2004-07-31 08:40:31 +00:00
Jeremy Fincher
38c4422f88 Let's not store modes +/-ovh. 2004-07-31 08:26:04 +00:00
Jeremy Fincher
a8a95c2ecc Fixed the one-channel bug. 2004-07-30 22:35:51 +00:00
Jeremy Fincher
aeda0833d2 Added a __repr__ for Irc objects. 2004-07-29 18:28:43 +00:00
Jeremy Fincher
0f5920571e Updated __str__ for Irc objects. 2004-07-29 07:05:46 +00:00
Jeremy Fincher
d2ff10b25d Updated some logs, fixed a major bug with reconnecting in irc.reset. 2004-07-28 00:32:09 +00:00
Jeremy Fincher
5163921d40 Removed do001 because we don't need it any longer; the network is always set. 2004-07-27 05:18:19 +00:00
Jeremy Fincher
7dbbf16dcc Allow multiple nicks, refactored irclib.Irc a bit. 2004-07-26 06:05:39 +00:00
Jeremy Fincher
f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
Jeremy Fincher
a95f1bc28c Added resize operation to RingBuffer and make IrcState use it. 2004-07-21 05:05:16 +00:00
Jeremy Fincher
aad1d2dc41 Updated to allow different networks. 2004-07-20 05:57:58 +00:00
Jeremy Fincher
dc1bc4ba55 Updated a ton of configuration variables. 2004-04-30 02:13:42 +00:00
Jeremy Fincher
b5ad1bed54 Fix for G-LiTe's bug. 2004-04-29 23:33:31 +00:00
Jeremy Fincher
9a907277c1 Changed reviter to reversed. 2004-04-20 09:51:20 +00:00
Jeremy Fincher
96838d0dbc Removed catch, moved curry to utils.py 2004-04-20 09:44:58 +00:00
Jeremy Fincher
7850da79d5 A little logging, etc. 2004-04-18 00:38:54 +00:00
Jeremy Fincher
2d2340bf17 Fixed 001 for misconfigured servers. 2004-04-17 14:12:17 +00:00
Jeremy Fincher
c697af6f08 Focused an else and added an assert. 2004-03-25 12:09:39 +00:00
Jeremy Fincher
d1bb8ce02f Bugfix with 433 handling. 2004-02-26 18:38:20 +00:00
Jeremy Fincher
57ec45e728 Added some little bit of extra logging. 2004-02-20 06:11:24 +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
223ac90fde Added logging of ERRORs from server. 2004-02-16 19:53:19 +00:00
Jeremy Fincher
0dcaf942ef Don't change our nick on 433 if we're using our default nick. 2004-02-13 18:37:35 +00:00
Jeremy Fincher
de30db819a Changed the assert to a log.info. 2004-02-09 16:19:28 +00:00
Jeremy Fincher
6b6efcddcc Removed some useless debugging madealios. 2004-02-08 03:24:09 +00:00
Jeremy Fincher
47d81547aa Added log.firewall and log.MetaFirewall, and converted several classes to use them. 2004-02-06 09:20:47 +00:00
Jeremy Fincher
717ee92e41 Catch exceptions in dying callbacks so all callbacks get a chance to die. 2004-02-03 07:11:32 +00:00
Jeremy Fincher
6ecd46bada Added modes to the Channel. 2004-01-30 19:53:34 +00:00
Jeremy Fincher
f57ceba827 Make sure network is always present, even if unset. 2004-01-28 19:07:21 +00:00
Jeremy Fincher
43c00a3f94 Added a network attribute to the Irc object. 2004-01-28 16:55:08 +00:00
Jeremy Fincher
385d803ec7 Fixed multiple logging of repr'ed msg. 2004-01-27 11:15:56 +00:00
Jeremy Fincher
03e3ad47a0 Added a little extra error catching in irclib.Irc.takeMsg. 2004-01-21 15:50:38 +00:00
Jeremy Fincher
224cacc966 Fixed several bugs and added the replies rich reply method. 2004-01-19 20:51:04 +00:00
Jeremy Fincher
6ca78924f3 HUUUUUUUUGE Configuration change. 2004-01-18 07:58:26 +00:00
Jeremy Fincher
e5689daf6d Changed the logging of actual messages to debug, not info. 2004-01-09 00:03:38 +00:00
Jeremy Fincher
731b95a146 Changed a few Nones to 'unsets'. 2004-01-08 00:47:48 +00:00
Jeremy Fincher
14eff0fdf1 Fixed problem in do002, splitting the wrong arg. 2004-01-02 21:32:56 +00:00
Jeremy Fincher
2b32ccdc7d Refactored Irc/Driver interaction. 2004-01-01 20:12:01 +00:00
Jeremy Fincher
cb5c22c9dc Made pinging the server optional. 2003-12-20 07:01:09 +00:00
Jeremy Fincher
29b0e20b2d Added followIdentificationThroughNickChanges for RFE #845346. 2003-12-17 13:39:05 +00:00
Jeremy Fincher
c922957655 Changed got376 to afterConnect. 2003-12-12 12:47:23 +00:00
Jeremy Fincher
c432a93afb Try to prevent the ping loops we got in earlier. 2003-12-12 12:29:02 +00:00
Jeremy Fincher
4c64ffb4c7 Changed some logging messages. 2003-12-09 04:46:51 +00:00
Jeremy Fincher
a23fbcfb1c Handled the case where nickmods got all run out. 2003-12-06 13:20:59 +00:00
Jeremy Fincher
da92309ba4 Fixed bug #851661. 2003-12-02 11:55:26 +00:00
Jeremy Fincher
f23d8b0b1e Added some extra logging. 2003-12-02 11:40:46 +00:00
Jeremy Fincher
3aa6faa82a Some code accidentally code committed, a useless function. 2003-12-01 12:04:26 +00:00
Jeremy Fincher
48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher
a763674d83 Added server attribute to Irc objects. 2003-11-25 11:53:09 +00:00
Jeremy Fincher
a4284e7924 Added __revision__ strings. 2003-11-25 08:38:19 +00:00
Jeremy Fincher
429c90ac2a Added __len__, __repr__, and a useful __init__ to IrcMsgQueue. 2003-11-19 16:22:46 +00:00
Jeremy Fincher
8a2e50baf1 Should fix jamessan's bug. 2003-11-18 14:22:54 +00:00
Jeremy Fincher
c37b775867 Prevented a possible raised exception in IrcMsgQueue. 2003-11-17 08:35:50 +00:00
Jeremy Fincher
da3be6b624 Made sure the bot doesn't clobber an already-existing user in the user database when it changes nick. 2003-11-12 23:56:26 +00:00
Jeremy Fincher
93f02aa959 Added curry to fix.py, converted some code to use it. 2003-11-04 08:26:54 +00:00
Jeremy Fincher
3f8c149047 Fixed major bugz0rs with IrcSet and IrcDict. 2003-11-04 05:50:19 +00:00
Jeremy Fincher
c3d7efa68b Fixed bug with reload not working with non-canonicalNames. 2003-10-30 18:05:57 +00:00
Jeremy Fincher
10c7b7c0c0 Made sure no messages longer than 512 bytes every leave the bot. 2003-10-23 05:53:49 +00:00
Jeremy Fincher
f917053150 Didn't update nickmods to match conf.nickmods when Irc.reset is called, in case we're on a dumb network like Freenode. 2003-10-19 13:59:00 +00:00
Jeremy Fincher
683ba63949 Fixed bug in IrcState.copy -- it wasn't doing deep copies. 2003-10-16 13:27:40 +00:00
Jeremy Fincher
76c4b7ed4c Converted the Irc class to use IrcCommandDispatcher. 2003-10-14 04:48:45 +00:00
Jeremy Fincher
9eff6d997e Removed/commented out some debug.printfs. 2003-10-12 12:42:43 +00:00
Jeremy Fincher
657db2c1f7 Changed the uses of queue to a smallqueue. 2003-10-09 04:01:27 +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
f5807381a9 Removed unused import atexit. 2003-10-04 12:18:36 +00:00
Jeremy Fincher
9053310ef1 Added docstrings. 2003-10-04 12:17:31 +00:00
Jeremy Fincher
3891360527 Changed irclib.Channel to irclib.ChannelState. 2003-10-01 11:15:31 +00:00
Jeremy Fincher
1c2a090b28 Added NICK to high priority messages but not PASS. Baaad. 2003-10-01 11:11:49 +00:00
Jeremy Fincher
2821527706 Made NICK a high priority message. 2003-09-30 21:19:42 +00:00
Jeremy Fincher
6169822349 Guarded IrcState.doMode to work only with channels. 2003-09-29 07:44:27 +00:00
Jeremy Fincher
fe4af22e50 Added op/halfop/voice handling in IrcState. 2003-09-29 04:30:18 +00:00
Jeremy Fincher
d97698d315 Missing a return. 2003-09-24 07:26:22 +00:00
Jeremy Fincher
71bba5d28c I was setting the prefix for the message to be added to the IrcState object, but I don't know why. We'll find out soon enough. 2003-09-17 07:54:02 +00:00
Jeremy Fincher
41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
Jeremy Fincher
8dc457961a Added a bit better diagnostic to IrcCallback.__call__ except clause. 2003-09-07 06:08:16 +00:00
Jeremy Fincher
7d01f9eeb3 Made IrcState handle empty TOPIC correctly. 2003-09-06 02:09:02 +00:00
Jeremy Fincher
3eb86b8869 Made PRIVMSG and NOTICE low-priority so TOPIC would happen before them. 2003-09-06 02:01:44 +00:00
Jeremy Fincher
0719bdec92 Added priority stuff for RFE #799899 2003-09-05 19:28:04 +00:00
Jeremy Fincher
dd6f5de32e Minor cosmetic changes. 2003-09-05 18:54:35 +00:00
Jeremy Fincher
7e80782452 Added a test to make sure JOINs happen before WHOs, and changed code to make that the case. 2003-09-05 18:16:51 +00:00
Jeremy Fincher
f65829b768 Moved several things from fix.py to utils.py. 2003-09-04 20:42:37 +00:00
Jeremy Fincher
b29da50397 Hopefully got the prefix thing right. 2003-08-29 08:09:09 +00:00
Jeremy Fincher
8f4bc0c325 Fixed possible error (uncovered during test) in Irc.die. 2003-08-26 18:14:59 +00:00
Jeremy Fincher
c38099550e Made IrcState keep history persistent through resets. 2003-08-26 16:39:23 +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
b8550ab31d Made the driver die in Irc.die. 2003-08-26 13:06:13 +00:00
Jeremy Fincher
5289f6bc75 Renamed conf.timestampFormat to conf.logTimestampFormat and added conf.humanTimestampFormat. 2003-08-26 11:15:15 +00:00
Jeremy Fincher
68b9b5f378 Guard against an error on exit. 2003-08-23 10:59:28 +00:00
Jeremy Fincher
8e068ce8c0 Made configuration commands persistent, yay! 2003-08-22 23:15:29 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
Jeremy Fincher
2a4c2ea185 Nuked ircutils.nick. Good riddance. 2003-08-12 19:12:12 +00:00
Jeremy Fincher
5f7656c781 Made throttling properly respect world.testing. 2003-08-11 05:07:07 +00:00
Jeremy Fincher
1cae9664a7 Upgraded to 2.3. 2003-07-31 06:20:58 +00:00
Jeremy Fincher
c6a8cebc2d Slight optimization in getCallback. 2003-07-30 11:04:29 +00:00
Jeremy Fincher
725da854ce TyopError 2003-06-18 07:19:27 +00:00
Jeremy Fincher
f8a54c4872 Fixed irclib.Channel to use ircutils.nick on its stuff. 2003-06-16 04:56:06 +00:00
Jeremy Fincher
d9b994f6fe Fixed bug in Irc.reset. 2003-06-06 04:47:18 +00:00
Jeremy Fincher
90409d0e19 Braino. 2003-06-04 04:48:49 +00:00
Jeremy Fincher
f2ae4b5f34 Finally found the underlying cause of the relaynames bug. 2003-06-04 03:56:59 +00:00
Jeremy Fincher
f35c9e8d05 Had wrong channel argument in IrcStat.do332. 2003-06-02 07:27:43 +00:00
Jeremy Fincher
ec8011347c Fixed bug in Channel. 2003-06-02 07:21:08 +00:00
Jeremy Fincher
f40780156e Added IrcCommandDispatcher as base class for IrcCallback and IrcState. 2003-05-29 17:03:42 +00:00
Jeremy Fincher
54788a643a Some slightly new helper functions and stuff. 2003-04-29 07:37:54 +00:00
Jeremy Fincher
6eacfb6c26 Changed IrcState.history to a RingBuffer instead of a MaxLengthQueue. 2003-04-22 11:18:57 +00:00
Jeremy Fincher
8fa7c95067 Somehow these didn't get updated when I moved queue to structures. 2003-04-22 11:13:03 +00:00
Jeremy Fincher
d9ca1637d7 Had to change PING/PONG handling to workaround non-RFC-compliant servers. 2003-04-21 04:37:35 +00:00
Jeremy Fincher
2227f5caae Fix for bug in Irc.removeCallback. 2003-04-20 17:18:34 +00:00
Jeremy Fincher
15f7dfe430 Make Irc.removeCallback shorter and more readable. 2003-04-16 17:53:55 +00:00
Jeremy Fincher
7f90fdc712 Added log of PING-based disconnect. 2003-04-12 12:21:21 +00:00
Jeremy Fincher
f1ee8b1bbd Typoed variable in class Irc. 2003-04-12 11:55:25 +00:00
Jeremy Fincher
019a648617 Changed dictionaries in IrcState to use ircutils.IrcDict. 2003-04-11 20:46:23 +00:00
Jeremy Fincher
f4d187b1f1 Added __getstate__ and __setstate__ to set and Channel. 2003-04-09 18:57:25 +00:00
Jeremy Fincher
79a1d351ad Added and started using MaxLengthQueue. 2003-04-09 18:12:38 +00:00
Jeremy Fincher
896ce38514 Added __getstate__ and __setstate__ to IrcState 2003-04-09 17:59:13 +00:00
Jeremy Fincher
66236e1f34 Added support for PASS command on connect. 2003-04-06 12:22:34 +00:00
Jeremy Fincher
f078d7fe1b Changed IrcState.history to a queue(). 2003-04-05 13:46:44 +00:00
Jeremy Fincher
277a1a356d Changed conf.minHistory to conf.maxHistory. 2003-04-05 12:25:39 +00:00
Jeremy Fincher
cf8c5c01cf Changed Channel to make it more in-line with future sets.Set. 2003-04-05 10:27:02 +00:00
Jeremy Fincher
a46ce6b109 Changed the way Irc handles unresponded-to PINGs. 2003-04-04 08:30:16 +00:00
Jeremy Fincher
33b4aa052c Changed debug.debugMsg to debug.msg. 2003-04-03 10:06:11 +00:00
Jeremy Fincher
a30ee6cd0b Changed IrcMsgQueue a bit to make it even more smarter; Added reconnection on ERROR disconnect; Added reconnect on returned PINGs. 2003-04-03 09:59:57 +00:00
Jeremy Fincher
eb9e5c87f2 Changed drivers.close() to .die(). 2003-04-03 08:52:41 +00:00
Jeremy Fincher
9e05519660 Changed driver.die() to driver.close() 2003-04-03 06:58:30 +00:00
Jeremy Fincher
818f01e206 Converted Irc.fastqueue to a fix.queue 2003-04-02 09:26:16 +00:00
Jeremy Fincher
d7e3b18046 Added more intelligence to IrcMsgQueue 2003-04-02 09:07:52 +00:00
Jeremy Fincher
df77cfaccf Fixed minor bug in IrcMsgQueue and removed needless if statement 2003-03-31 22:21:42 +00:00
Jeremy Fincher
c700f3c6e5 Straightened out some IrcState inconsistencies. 2003-03-31 09:23:32 +00:00
Jeremy Fincher
68440bd83a Added proper NICK handling to IrcState 2003-03-31 08:12:50 +00:00
Jeremy Fincher
ce03a98ae9 Fixed a few errors found by PyChecker 2003-03-28 07:55:21 +00:00
Jeremy Fincher
0dbab5b0fc Fixed stupid nick-handling bugs 2003-03-28 03:01:14 +00:00
Jeremy Fincher
30591187ad A little better error reporting 2003-03-28 02:33:40 +00:00
Jeremy Fincher
41aa44ee78 Fixed bug in handling of outFilters returning None 2003-03-27 20:59:05 +00:00
Jeremy Fincher
7d44088223 Fixed IndexError in Irc.removeCallback 2003-03-27 20:38:40 +00:00
Jeremy Fincher
714de6bfae Irc.callbacks is always mutated, never replaced, helping the Relay module out. 2003-03-27 11:29:42 +00:00
Jeremy Fincher
1623c594d7 Added __eq__ and __hash__ to the Irc class (necessary for the Relay module) 2003-03-26 06:56:02 +00:00
Jeremy Fincher
17815fbeda Don't complain about not adding messages to the message queue when world.startup is in effect. 2003-03-25 23:44:22 +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