Valentin Lorentz
e937128c69
Merge pull request #1090 from GLolol/scripts/round-cpu-time
...
scripts/supybot: round total CPU time to 2 decimal places
2015-04-11 22:35:53 +02:00
James Lu
6fa96df607
scripts/supybot: use %.2f for rounding
2015-04-11 13:33:34 -07:00
Valentin Lorentz
59891f9b86
Merge pull request #1091 from GLolol/better-logging
...
callbacks.py: log plugin name in registryValue='text' errors
2015-04-05 22:56:20 +02:00
James Lu
fc418d35b0
scripts/supybot: round total CPU time to 2 decimal places
...
This prevents rather silly things such as 0.9400000000001 from showing up.
(cherry picked from commit GLolol/Limnoria@2d5e936f0d )
2015-04-05 13:47:41 -07:00
James Lu
6add519765
callbacks.py: log plugin name in registryValue='text' errors
...
This can help with debugging to find what plugins are passing invalid things to registryValue().
2015-04-05 13:44:30 -07:00
James Lu
159c1e7cd8
ShrinkUrl: Remove ln ( Closes #618 ).
...
ln-s.net has been dead for over half a year now; both their website homepage
and any previous shortened links return an HTTP 503. Thus, it isn't very
useful to leave this broken command lingering around...
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:52:54 -04:00
Mikaela Suomalainen
01e776edc2
ShrinkUrl: use x0 by default. Fixes #617 .
...
x0 has the smallest working output. ur1 had the second smallest.
Their difference is one character.
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:49:02 -04:00
nyuszika7h
8266870d9f
ShrinkUrl: Remove xrl.us
...
> Please note: Adding new links has been disabled since September 2014
> after 14 months notice.
Source: http://metamark.net/
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:40:59 -04:00
Valentin Lorentz
6a134eb302
Update string comparison to a newer string.
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:04:06 -04:00
Valentin Lorentz
b0846f914e
Fix crash for commands with ambiguous getopts shortcuts and no docstring.
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:00:43 -04: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
James McCoy
c3695c9419
ircutils: Add formatWhois function
...
Parsing through the various WHOIS replies to build a formatted string
isn't a trivial task, especially since there is some privacy related
information. Consolidate this handling into a single function so
there's one place to fix bugs.
Also fix an issue with people putting (unterminated) formatted text into
the "realname" field of their IRC client (c.f., ProgVal/Limnoria#1083 ).
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 00:11:36 -04:00
Valentin Lorentz
3275806740
Rename showWhichResponded to showDictName.
2015-03-17 07:58:50 +01:00
James Lu
183592dff0
Dict: add option to toggle showing which dictionaries responded to a query
...
Dict's output is very long and verbose; this can shorten it by a bit.
Conflicts:
plugins/Dict/config.py
2015-03-17 07:58:49 +01:00
Valentin Lorentz
381e514b5c
Merge pull request #1078 from GLolol/channel/allow-devoice-self
...
Channel: allow devoicing self
2015-03-16 23:19:20 +01:00
James Lu
d76b5049ac
Channel: update tests
2015-03-13 23:37:29 -07:00
James Lu
172f7bdd63
Channel: allow devoicing self
...
Voice almost always requires halfop or above to set, and since having (half)op gives greater access than voice, I don't see the benefit in restricting this when it won't make a difference anyways.
2015-03-11 15:51:47 -07:00
Valentin Lorentz
530c24604d
Merge pull request #1076 from GLolol/patch-1
...
PluginDownloader: update Iota's repository URL
2015-03-10 08:32:43 +01:00
James Lu
47722f4e6c
PluginDownloader: update Iota's repository URL
2015-03-09 16:53:56 -07:00
Valentin Lorentz
a5e881b116
Merge pull request #1075 from GLolol/channel/allow-admin-part
...
Channel: allow both admins and #channel,ops to use 'part'
2015-03-06 20:45:13 +01:00
James Lu
7757f3a1b4
Channel: allow both admins and #channel,ops to use 'part'
2015-03-06 12:50:59 -05:00
Valentin Lorentz
585c8ad026
Merge pull request #1071 from NP-Hardass/patch-1
...
Remove test from .gitattributes
2015-03-04 07:26:20 +01:00
NP-Hardass
e8b4aeb190
Remove test from .gitattributes
...
Fixes an issue where tags/releases do not ship the core test suite, as used by the automated Travis testing.
2015-03-04 00:32:40 -05:00
Valentin Lorentz
4470805b5f
core: Remove useless imports.
2015-03-03 09:02:29 +01:00
Valentin Lorentz
72e71edb89
Update string comparison to a newer string.
2015-03-03 08:55:29 +01:00
Valentin Lorentz
6f9960d7a4
Fix crash for commands with ambiguous getopts shortcuts and no docstring.
2015-03-03 08:55:29 +01:00
Valentin Lorentz
18bafc725f
Merge branch 'testing' of github.com:ProgVal/Limnoria into testing
2015-03-02 20:35:56 +00:00
Valentin Lorentz
d04af4a8cb
Merge pull request #1067 from GLolol/shrinkurl/remove-ln-s
...
ShrinkUrl: Remove ln (Closes #618 ).
2015-02-28 23:44:42 +01:00
James Lu
dae81168d3
ShrinkUrl: Remove ln ( Closes #618 ).
...
ln-s.net has been dead for over half a year now; both their website homepage
and any previous shortened links return an HTTP 503. Thus, it isn't very
useful to leave this broken command lingering around...
2015-02-28 09:52:42 -08:00
Valentin Lorentz
c473c8aa8e
Merge pull request #1065 from GLolol/patch-1
...
conf.py: Remove reference to non-existent "user configuration variable"
2015-02-28 09:15:26 +01:00
James Lu
aba37ff951
conf.py: Remove reference to non-existent? "user configuration variable"
...
Closes #654 .
2015-02-28 00:13:06 -08:00
Valentin Lorentz
f6c789b018
Merge pull request #1063 from GLolol/channel/autorejoin-delay
...
Channel: allow adding an auto-rejoin delay
2015-02-28 08:39:34 +01:00
James Lu
e3079f82b2
Merge remote-tracking branch 'upstream/testing' into channel/autorejoin-delay
...
Conflicts:
plugins/Channel/config.py
2015-02-27 23:37:11 -08:00
Valentin Lorentz
cf7e4c6512
Merge pull request #1064 from GLolol/channel/part+cycle
...
Move 'part' command from Admin to Channel and use part messages in Channel.cycle
2015-02-28 07:48:05 +01:00
James Lu
f11d3162ae
Merge remote-tracking branch 'upstream/testing' into channel/part+cycle
...
Conflicts:
plugins/Admin/config.py
plugins/Admin/plugin.py
2015-02-27 18:55:20 -08:00
James Lu
f3107a928f
Channel: allow adding an auto-rejoin delay via supybot.plugins.Channel.rejoinDelay
...
Closes #1011 .
2015-02-27 18:45:37 -08:00
James Lu
32988ee3a3
Channel.cycle: allow specifying part message + defaults to plugins.Channel.partMsg
...
Closes #1062 .
2015-02-27 18:27:58 -08:00
James Lu
a67fb94875
Move 'part' command from Admin to Channel and require #channel,op instead of admin
...
Closes #79 .
2015-02-27 18:12:52 -08:00
Valentin Lorentz
9076194009
Merge pull request #1041 from GLolol/admin/configurable-partmsg
...
Admin/Owner: substitute $version in quit and part messages (also make part messages configurable)
2015-02-27 13:15:25 +01:00
Valentin Lorentz
a59784a366
Merge pull request #1057 from kyrias/dictclient-utf8
...
Make dictclient.py unicode capable
2015-02-21 20:22:19 +01:00
Johannes Löthberg
d4aa4362e5
dictclient: Remove whitespace at end of lines
2015-02-21 20:08:13 +01:00
Johannes Löthberg
1654bfca0c
dictclient: Encode as utf-8 instead of ASCII
...
dict.org has dictionaries with words containing non-ASCII characters.
2015-02-21 20:08:13 +01:00
Valentin Lorentz
0d7e0f73fb
Merge pull request #1056 from GLolol/patch-1
...
Network.whois: simplify message when user isn't on any public channels
2015-02-21 08:57:43 +01:00
James Lu
5f23855d27
oops how do i english
2015-02-20 22:20:49 -08:00
James Lu
41effcea13
Network.whois: simplify message when user isn't on any public channels
...
The current message ("xyz isn't on any non-secret channels or is using a channel-list hiding umode.") is long and awkwardly worded.
This also removes an extra period from showing up at the end of the output.
2015-02-20 16:50:40 -08:00
James McCoy
a8cd99f121
commands._getRe: Restore original args for any failure
...
String.re uses first('regexpMatcher', 'regexpReplacer'). If the args
provided to String.re are not a matcher and are longer than a single IRC
message (e.g., from a nested command), then regexpReplacer would never
be tried. A too long error should be handled the same as running out of
args while trying to find a valid regexp.
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-02-18 22:09:38 -05:00
Valentin Lorentz
b99ff28e33
utils.web.getUrl: add the 'timeout' argument (and fix the doc of getUrlFd).
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-02-18 19:53:42 -05:00
Valentin Lorentz
1264573b34
Merge remote-tracking branch 'kyrias/say-command' into testing
2015-02-14 13:38:56 +01:00
Johannes Löthberg
75288193ad
QuoteGrabs: Add say command
...
The say command just returns the text of the grab, so you can get just
the quote from a specific qid.
2015-02-14 13:15:13 +01:00
Valentin Lorentz
981476d6d5
String: Return raw bytes when decode returns binary data.
2015-02-11 14:09:16 +00:00