Commit Graph

7039 Commits

Author SHA1 Message Date
Daniel Folkinshteyn
629ede010a forget about unicode, and just use text_factory str for sqlite to retrieve raw bytes out of text fields without conversions. 2010-03-17 13:19:07 -04:00
Daniel Folkinshteyn
6ceeace44d process multiple matches of a regexp per message 2010-03-17 12:37:34 -04:00
Daniel Folkinshteyn
95aa56c694 fix sqlite3 import for python 2.4 2010-03-17 01:55:23 -04:00
Daniel Folkinshteyn
dbbef9ec43 use double quotes in listall. 2010-03-16 16:51:30 -04:00
Daniel Folkinshteyn
d72649c5c5 give messageparser ability to use arbitrary commands as trigger responses. 2010-03-16 16:49:55 -04:00
Daniel Folkinshteyn
a88353dd0d Merge branch 'messageparser.sqlite3' into mergempsqlite3 2010-03-16 14:28:26 -04:00
Daniel Folkinshteyn
0e50249256 start factoid rankings from 1 not from 0 2010-03-15 23:12:35 -04:00
Daniel Folkinshteyn
f8ddba0d15 get messageparser to use sqlite3. should work now.... 2010-03-15 20:06:24 -04:00
Daniel Folkinshteyn
3326212d55 fix typo (write-o, really) in string for show command 2010-03-15 17:40:57 -04:00
Daniel Folkinshteyn
0c87c523d2 use irc.reply instead of irc.error for conditions that are expected to normally occur on occasion,
also, add returns after error conditions (i assumed earlier that irc.error returned) - this fixes some bugs.
2010-03-15 17:32:02 -04:00
Daniel Folkinshteyn
f6a86a81ce populate the readme with useful tutorial! :) 2010-03-15 17:17:11 -04:00
Daniel Folkinshteyn
f62be4b4a7 implement the messageparser plugin.
at the moment, it is constrained only to echo messages, rather than arbitrary commands, for triggers
maybe that'll change in the future...
2010-03-11 01:59:37 -05:00
Daniel Folkinshteyn
5b05944838 create stub of messageparser plugin 2010-03-10 01:27:00 -05:00
Daniel Folkinshteyn
3ea6e58365 add standardsubstitute vars 'utc' and 'gmt' which output current time in UTC. 2010-03-08 17:24:00 -05:00
Daniel Folkinshteyn
13c244c9a7 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.
2010-03-08 16:39:45 -05:00
Daniel Folkinshteyn
d1c00ccbaf remove rogue test-print 2010-03-08 14:49:58 -05:00
Daniel Folkinshteyn
9db1598a0e sort keys in factoid search output by alphabetically by key name. 2010-03-05 14:51:25 -05:00
Daniel Folkinshteyn
fcd262cd4b implement factoid usage counter 2010-03-05 14:08:11 -05:00
James Vega
397cbbe0d3 Internet: Use whois-servers.net for all whois lookups.
rs.internic.net seems to be broken and using $tld.whois-servers.net looks to
be working for everything.

Also need to update the line termination string to use '\r\n' instead of '\n'
since some servers are strict about receiving the former.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-03-03 08:33:44 -05:00
James Vega
4a9596608a Include hostmasks in JOIN, PART, QUIT logs.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-02-28 21:17:35 -05:00
James Vega
10f5a12b7e Factoids: Prevent empty key or value when adding a factoid.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-02-05 18:50:48 -05:00
James Vega
0540513387 Decode/encode as 'string_escape' when (de)serializing the registry.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-30 23:03:35 -05:00
James Vega
288d7c6e02 Update plugins to ignore all non-ACTION CTCP messages.
Also update commands.urlSnarfer to do the same, which allows us to revert
"Don't bother snarfing URLs from non-Action CTCP messages."

This reverts commit 3282e3407e.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-28 08:14:44 -05:00
Jeremy Fincher
3282e3407e Don't bother snarfing URLs from non-Action CTCP messages. 2010-01-28 06:35:53 -06:00
Štěpán Němec
9e15d03375 Filter plugin: improve the `uniud' replacements.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-27 19:01:54 -05:00
Štěpán Němec
3a992ba78e Format plugin: Delete stray `configure' definition from plugin.py.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-15 21:57:07 -05:00
James Vega
67c8554864 Merge branch 'master' of git+ssh://supybot.git.sourceforge.net/gitroot/supybot/supybot 2010-01-10 20:20:21 -05:00
James Vega
408ab6f88a Network: Properly parse WHOIS response
The 319 message that indicates which channel(s) a user is in prefix the
channel name with the modes (@, +, !, etc.) applied to that user.  These need
to be stripped from the channel name before we feed it to
irc.state.channels.get(), otherwise when irc.state.channels.get() returns None
we assume the channel can't be private and leak information.
2010-01-10 20:17:10 -05: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
Jeremy Fincher
b774268498 Added network to debug "Incoming message" log. 2009-12-28 12:17:27 -06:00
James Vega
0806c0bbc3 PLUGIN_TUTORIAL: Remove references to the old website.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-12-10 08:09:11 -05:00
James Vega
3689460d0f Use 0 when no results are returned for Google.fight
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-28 21:21:00 -05:00
James Vega
a48cd109a3 Fix supybot-botchk's use of subprocess
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-28 17:48:24 -05:00
Jeremy Fincher
89a535e8c1 Until we can safely load Karma, this test is staying commented out. 2009-11-25 09:17:52 -06:00
Jeremy Fincher
52e96bff61 Remove some comments that are now irrelevant (and have been for some time). 2009-11-25 09:14:05 -06:00
James Vega
fbdc44ca52 Switch from using the various popen flavors to subprocess.Popen
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-22 14:31:58 -05:00
Daniel Folkinshteyn
e303cab7ae work on getting moobotfactoids to work with sqlite3
note: needs sqlite3 version > 3.3.1, so that it is not restricted against cross-thread usage.
2009-11-18 23:16:21 -05:00
James Vega
07e283f450 Default to strict RFC compliance.
It's better to force people to use an RFC nick and change it after they
connect than to let non-RFC nicks get used and not be able to connect to the
network.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-18 20:02:53 -05:00
Daniel Folkinshteyn
b77c649c8a factoids now works with sqlite3, all tests pass. 2009-11-18 12:04:52 -05:00
Daniel Folkinshteyn
5bf71395e7 another step toward sqlite3 2009-11-18 02:27:48 -05:00
Daniel Folkinshteyn
cc1f4ea015 some more mods toward getting sqlite3 to work 2009-11-18 02:03:44 -05:00
Daniel Folkinshteyn
11446c7cb5 some work in progress getting plugins to work with sqlite3 2009-11-18 01:48:11 -05:00
hairball
a594d0e95c Small typos and doc fixes.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-04 22:54:46 -05:00
James Vega
a453f56284 ShrinkUrl: Use tinyurl's api-create page to avoid screen-scraping.
Set snarfThrottle to 0 while testing since we know there's nothing other than
the test input that could be causing us to snarf.  Fixes some intermittent
test failures due to fast snarf responses.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-04 22:37:53 -05:00
James Vega
eda8ce3aa0 Remove supybot-wizard's direct import of sets.
This is deprecated in 2.6 and supybot.utils already handles adding sets.Set to
__builtins__ if we're running with Python < 2.4.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-02 19:11:58 -05:00
James Vega
082ee59d32 Change a couple tests so they fail for real reasons instead of fake.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-01 19:08:34 -05:00
James Vega
8a98653d3b Allow Banmask.makeBanmask to work when dynamic.channel is None.
This gives back the ability to generate a banmask based on the global banmask
settings instead of per-channel settings.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-01 10:26:08 -05:00
James Vega
acaa9b1fd6 Rename Owner.log to Owner.logmark
Since every plugin has a log method (to do actual logging), the log command
was conflicting with that.  The attempted workaround was overly complicated
and broken.  Simply renaming the command to logmark simplifies everything.

Closes Sf #2889709

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-31 18:22:14 -04:00
James Vega
213d304e54 ChannelStats: Add tracking of max users for a channel.
Closes Sf #1032038

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-27 19:28:34 -04:00
James Vega
e393ea5917 Remove supybot-plugin-package from the set of installed files.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-25 09:20:45 -04:00