Valentin Lorentz
c3a2c800f1
Remove need for 2to3.
2015-08-11 16:50:23 +02:00
Valentin Lorentz
be118c3338
Remove use of fix_dict fixer.
2015-08-08 23:08:49 +02:00
James Lu
c3ddc585b4
irclib: fix error when SASL is supported but not enabled for a network
2015-06-12 18:07:27 -07:00
nyuszika7h
869c6ce30d
Fix capability negotiation
2015-06-12 15:08:45 +02:00
Valentin Lorentz
cf557b516a
Fix Python 2.6 support.
2015-05-24 12:29:11 +02:00
Valentin Lorentz
e2b3b917e5
Use CAP LS.
2015-05-24 12:25:42 +02:00
Valentin Lorentz
a2004b7150
Improve order of connect messages.
2015-05-17 12:31:14 +02:00
Valentin Lorentz
5bd0001d02
irclib: Faster connection. (At least 5 seconds less.)
2015-05-17 12:02:31 +02:00
Valentin Lorentz
b405f998a5
NickAuth: Add support for account-tag (not tested).
2015-05-15 20:46:18 +02:00
Valentin Lorentz
259457ae2f
core: Request capability metadata-notify so plugins can use it if they want.
2015-05-15 19:35:51 +02:00
Valentin Lorentz
59d542bb70
NickCapture & core: Add support for MONITOR. Closes GH-842.
2015-05-15 19:24:24 +02:00
Valentin Lorentz
487f8c8af5
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
.mailmap
README
docs/FAQ.rst
plugins/Ctcp/plugin.py
plugins/Misc/plugin.py
plugins/Network/plugin.py
plugins/QuoteGrabs/plugin.py
plugins/RSS/README.txt
plugins/Relay/plugin.py
plugins/ShrinkUrl/config.py
plugins/ShrinkUrl/plugin.py
plugins/ShrinkUrl/test.py
setup.py
src/callbacks.py
src/commands.py
src/conf.py
test/test_commands.py
2015-05-15 14:41:08 +02:00
Valentin Lorentz
7448c04760
Store the list of server capabilities in IrcState.
2015-05-15 13:01:26 +02:00
James McCoy
cffbd959e8
Add handling of 437 (nick temporarily unavailable) errors
...
Servers bind a nick to a connection for a short window after it
disappears to try and avoid contention over nicks. This may cause a 437
during connection to a server (c.f. ProgVal/Limnoria#1033 ) or even
during normal nick changes, if the timing is lucky.
Add handling for this error to the startup code and the Admin plugin.
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 01:33:04 -04:00
Valentin Lorentz
4470805b5f
core: Remove useless imports.
2015-03-03 09:02:29 +01:00
James Lu
561085cbd1
irclib.py: fix an encoding error with Python 3 and SASL ECDSA-NIST256P-CHALLENGE
...
Closes ProgVal#1028.
2015-01-24 13:32:13 -05:00
nyuszika7h
5653e0c727
Fix commit 30a026a
...
Requesting multiple capabilities in one message will result in a NAK for
all of them if at least one is not supported by the server.
2015-01-19 18:12:39 +01:00
Valentin Lorentz
30a026a92a
Request multi-prefix capability. (GH-1017)
2015-01-19 17:15:25 +01:00
nyuszika7h
bf418756a9
Fix registration timeout when SASL is refused
...
https://github.com/ProgVal/Limnoria/issues/854#issuecomment-70414650
2015-01-18 21:31:03 +01:00
Max Teufel
ef0a2c1cb1
irclib: add support for SASL ECDSA-NIST256P-CHALLENGE
...
Closes #911
2014-12-29 11:47:57 +01:00
nyuszika7h
18ccc168f5
src/irclib.py: fix typo causing an error on 904
2014-08-30 11:55:31 +02:00
nyuszika7h
414d2d1878
Add support for SASL EXTERNAL
2014-08-27 12:21:22 +02:00
Valentin Lorentz
0c6315afac
Merge pull request #808 from nyuszika7h/fix-who
...
Fix WHO clash with external plugins (e.g. ChanTracker)
2014-08-05 12:00:31 +02:00
nyuszika7h
037cc98cac
Fix capability negotiation
2014-08-05 11:22:56 +02:00
nyuszika7h
da817603dd
src/irclib.py: use a set instead of a list for Irc.caps
2014-08-04 21:54:44 +02:00
nyuszika7h
581d167e5e
src/irclib.py: set caps in Irc.__init__
...
This allows other plugins to request capabilities in a straightforward
way.
2014-08-04 21:36:00 +02:00
nyuszika7h
20c71df8f9
Fix WHO clash with external plugins (e.g. ChanTracker)
2014-08-04 21:32:13 +02:00
Valentin Lorentz
9385487f54
Simplify and fix logic of umodes filtering. Closes GH-719.
2014-08-04 16:26:23 +02:00
nyuszika7h
ddbfad5086
Add do352 back for IRCds which do not support WHOX
2014-08-03 13:58:49 +02:00
nyuszika7h
dd5556ea99
Fix previous commit
2014-08-02 14:11:49 +02:00
nyuszika7h
e185416987
Fix tests
2014-08-02 13:45:41 +02:00
nyuszika7h
871607614a
Implement account-notify, extended-join and WHOX
...
Also integrate it with NickAuth.
Closes #778 .
2014-08-02 12:30:24 +02:00
nyuszika7h
32e3be3dac
src/irclib.py: remove some errors
2014-07-26 11:52:34 +02:00
nyuszika7h
100ff648be
src/irclib.py: Further improvements to SASL and a few other minor things
2014-05-24 17:25:32 +02:00
nyuszika7h
414249c9ac
src/irclib.py: Delay sending SASL authstring until given green light
...
That means wait until receiving 'AUTHENTICATE +' from the server, which
means the mechanism is supported and we can proceed to send the
authstring.
It generally works anyway, but it's better to follow the standards, plus
old versions of elemental-ircd may crash if we don't do this.
2014-05-24 15:57:27 +02:00
Valentin Lorentz
9d084e2e70
Allow network-specific username and ident. Closes GH-589.
2014-05-08 08:33:01 +00:00
nyuszika7h
822e6449f9
irclib: Add support for additional SASL numerics
2014-04-10 15:03:20 +02:00
nyuszika7h
6be8204805
irclib: Remove some useless SASL debug messages
2014-04-10 14:57:20 +02:00
nyuszika7h
14e51f6193
irclib: Make SASL messages easier to understand
...
The logs are meant to be understandable by humans, and not everyone
might know AUTHENTICATE is a SASL command.
[ci skip]
2014-04-10 14:53:17 +02:00
Valentin Lorentz
0d4784cf4a
Fix compatibility with Python 2.6 (does not support the set syntax).
2014-01-26 21:49:28 +01:00
Valentin Lorentz
35a62b4e77
Continue accelerating the 2to3 step (remove fix_ws_comma, fix_xreadlines, and fix_zip).
2014-01-21 10:40:18 +01:00
Valentin Lorentz
ca419f6485
Continue accelerating the 2to3 step (remove fix_reduce, fix_renames, fix_repr, fix_set_literal, fix_standarderror, fix_sys_exc, fix_throw, and fix_tuple_params).
2014-01-20 16:04:53 +01:00
Valentin Lorentz
bb7db3ab21
Continue accelerating the 2to3 step (remove fix_except).
2014-01-20 15:49:15 +01:00
Valentin Lorentz
529b8f8d99
Continue accelerating the 2to3 step (remove fix_nonzero, fix_operator, and fix_paren).
2014-01-20 15:19:06 +01:00
Valentin Lorentz
677f7fdd6f
irclib: Prevent crash if 324 or 329 is not received after any other post-join messages.
2013-10-10 14:10:06 +00:00
Valentin Lorentz
40675ffdfa
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
plugins/Admin/plugin.py
plugins/BadWords/config.py
plugins/Filter/plugin.py
plugins/Google/plugin.py
plugins/Math/plugin.py
plugins/Misc/plugin.py
plugins/Note/plugin.py
plugins/RSS/plugin.py
plugins/Seen/test.py
plugins/ShrinkUrl/config.py
plugins/ShrinkUrl/plugin.py
plugins/ShrinkUrl/test.py
plugins/Status/plugin.py
plugins/String/config.py
plugins/String/plugin.py
plugins/Time/plugin.py
plugins/Todo/plugin.py
plugins/Web/plugin.py
plugins/__init__.py
scripts/supybot-botchk
setup.py
src/__init__.py
src/callbacks.py
src/commands.py
src/conf.py
src/drivers/Socket.py
src/ircdb.py
src/irclib.py
src/ircutils.py
src/questions.py
src/registry.py
src/schedule.py
src/test.py
src/utils/file.py
src/utils/gen.py
src/utils/net.py
src/utils/web.py
src/world.py
2013-08-24 11:28:29 +02:00
Valentin Lorentz
9bfec720f5
Fix traceback if bot is kicked immediately after joining a channel.
2013-07-13 12:01:53 +02:00
Milos Petkovic
be6116f958
Reset network uptime on reconnection as well
2013-06-17 08:09:16 +02:00
Valentin Lorentz
1090c4623f
Factoids: Add supybot.plugins.Factoids.requireVoice. Closes GH-378.
2013-05-17 17:47:43 +02:00
Valentin Lorentz
856a65c9f6
Add irc.state.ircd.
2013-03-31 21:22:59 +02:00
Valentin Lorentz
d714909576
Use non-sexist language in strings and comments.
2013-03-08 20:34:31 +01:00
nyuszika7h
e491e14bc3
Final fix for SASL and py3k
2013-02-03 18:50:20 +01:00
nyuszika7h
4170a873b2
Fix previous commit (yet again)
2013-02-03 15:58:45 +01:00
nyuszika7h
66e46e5143
Fix previous commit (again)
2013-02-03 15:30:28 +01:00
nyuszika7h
4b10ea3329
Fix previous commit
2013-02-03 15:14:03 +01:00
nyuszika7h
f1198fb4e8
irclib.py: Fix SASL on py3k
2013-02-03 15:08:36 +01:00
Valentin Lorentz
fa36e48075
core: Document irclib.Irc.addCallback.
2013-02-01 20:38:53 +01:00
Valentin Lorentz
3dba9088b0
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
INSTALL
plugins/ChannelLogger/README.txt
plugins/ChannelStats/README.txt
plugins/Google/plugin.py
plugins/Google/test.py
plugins/Plugin/test.py
plugins/Web/test.py
setup.py
src/callbacks.py
src/ircdb.py
src/irclib.py
src/utils/str.py
test/test_irclib.py
2013-01-01 21:11:24 +01:00
Valentin Lorentz
79eeb8eb95
Revert "irclib: Apply changes to supybot.protocols.irc.maxHistoryLength immediately."
...
This reverts commit 1d2eefe880
.
IrcState instances are created more than five times a second! Imagine how much
memory is used (hint: 300MB five minutes after startup).
We should first try to reduce this amount.
2012-12-27 16:06:01 +00:00
Valentin Lorentz
1d2eefe880
irclib: Apply changes to supybot.protocols.irc.maxHistoryLength immediately.
2012-12-27 12:24:24 +00:00
Valentin Lorentz
84148988b3
Fix tests broken by 6a06ca991
.
2012-12-26 15:37:52 +01:00
Valentin Lorentz
6a06ca9911
core: Initialize list of bans when joining a channel.
2012-12-23 17:19:25 +01:00
James McCoy
cef93a6cfd
Use relative imports for all packages under the supybot namespace
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-17 22:12:11 -04:00
James McCoy
232aa86a1e
Merge branch 'maint/0.83.4'
2012-09-01 09:13:52 -04:00
James McCoy
c74e8f35ab
Fix regression in parsing 004 messages
...
This was introduced in commit 4232e40e26
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-08-26 12:59:41 -04:00
Valentin Lorentz
d2ab53cd19
Fix parsing of 004 message. (Broken in d9531d2d
).
2012-08-25 20:17:15 +02:00
Valentin Lorentz
45bf9db03c
Merge branch 'py3k-backport' into testing
...
This branch provides support of Python 3 via 2to3 (without dropping
Python 2 support).
2012-08-08 21:46:29 +02:00
Valentin Lorentz
e3d170d9fe
Add support for network-specific umodes.
2012-08-06 15:59:00 +02:00
Valentin Lorentz
e23fa611d6
Call other.__eq__ in irclib.Irc.__eq__ instead of using the == comparator.
...
Here, this operator is not reflexive, and Python 3 calls the second members resulting in a stack overflow.
2012-08-04 13:25:47 +02:00
Valentin Lorentz
1cb657ddb2
Import imap directly from itertools instead of utils.iter.
2012-08-04 13:21:37 +02:00
Digital-Lemon
51ef07caf5
Added Irc objects creation time
2012-06-30 02:32:49 +02:00
James McCoy
438b50dccc
irclib: Modes aren't case insenstive
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-06-06 13:38:38 +02:00
James McCoy
6d1b957e07
irclib: Modes aren't case insenstive
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-06-06 06:00:48 -04:00
Valentin Lorentz
e92b8a62f5
Merge supybot's master (will make future merges easier)
...
Conflicts:
plugins/Misc/plugin.py
plugins/String/plugin.py
src/drivers/Socket.py
src/irclib.py
src/ircutils.py
2012-04-03 16:55:29 +02:00
nyuszika7h
c656abf096
irclib.py: Add network name to 'Outgoing message' debug log message
2011-12-28 11:37:10 +01:00
James McCoy
d9531d2d29
Fix parsing of 004 message for supported umodes/chanmodes
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-12-14 01:31:28 +08:00
James McCoy
b8c43dc5cc
Perform all received* IrcMsg tagging in one spot.
...
This also fixes a long-standing failing Misc test since it was relying on the
receivedAt tag.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-12-13 18:06:26 +01:00
James McCoy
ca23cbb774
Merge branch 'maint/0.83.4'
2011-12-06 01:18:18 -05:00
James McCoy
4ddfae427f
Perform all received* IrcMsg tagging in one spot.
...
This also fixes a long-standing failing Misc test since it was relying on the
receivedAt tag.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-12-05 23:52:38 -05:00
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
James McCoy
4833976294
One last fix to umode filtering.
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-11-13 15:10:16 -05:00
Valentin Lorentz
b5187ea31d
Fix commit b23480b9
again.
2011-11-12 00:39:08 +01:00
Valentin Lorentz
efd158da58
Fix commit b23480b9
. Closes GH-267.
2011-11-11 23:50:55 +01:00
Valentin Lorentz
348d1bd99c
Fix typo (lamda => lambda).
2011-11-11 19:56:20 +01:00
James McCoy
d6336421e0
Fix IRC.do376's handling of supported state
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-11-07 05:58:48 -05:00
James McCoy
4232e40e26
Fix parsing of 004 message for supported umodes/chanmodes
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-11-07 05:58:27 -05:00
James McCoy
3bfda3cc7a
Fix filtering of unsupported umodes
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-11-06 22:20:55 -05:00
Valentin Lorentz
74b98f5c2a
Merge remote-tracking branch 'supybot/master' into testing
2011-10-31 22:07:48 +01:00
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