246 Commits

Author SHA1 Message Date
ian%hixie.ch
298dda5319 Try to handle the disappearing connection problem for the common case.
git-svn-id: svn://10.0.0.236/trunk@161779 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 11:34:46 +00:00
ian%hixie.ch
fbec197f3e Admin Told sub was returning the wrong thing in many cases (removes some console error messages.)
git-svn-id: svn://10.0.0.236/trunk@161764 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 18:48:28 +00:00
ian%hixie.ch
3c2c5783a0 Actually _check_ to see if something went wrong when writing the second file -- not much point saving the original configuration file if we don't check for errors while updating it. Should (who knows) fix bug 254019.
git-svn-id: svn://10.0.0.236/trunk@161763 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 17:56:13 +00:00
ian%hixie.ch
30409cacb8 Fixing bug caused by buggy Net::IRC 0.75 code. See bug 245424. Thanks to mh for the hint of where to look.
git-svn-id: svn://10.0.0.236/trunk@161762 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 17:43:58 +00:00
ian%hixie.ch
ff727f921e Rude is no longer that useful, but is left here for posterity's sake. Add a comment noting the demise of its servers.
git-svn-id: svn://10.0.0.236/trunk@161759 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:30:13 +00:00
ian%hixie.ch
7b3295a6fb God should also do autovoice. Add a comment to this effect. (Actually it should do a lot more, see bug 240259)
git-svn-id: svn://10.0.0.236/trunk@161758 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:26:56 +00:00
ian%hixie.ch
8edfd8241a Make mozbot more resilient to database problems: It will now try to reconnect if some of the database things fail. Also, add a comment about a missing feature (multiple server support would rock). Mention why we ignore errors at one point. Finally, remove the event argument from one of the methods since it didn't use it nor need it.
git-svn-id: svn://10.0.0.236/trunk@161757 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:22:37 +00:00
ian%hixie.ch
1b292fb52b Minor typo... (eagull->seagull)
git-svn-id: svn://10.0.0.236/trunk@155466 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 23:54:35 +00:00
ian%hixie.ch
9e4e819c84 Minor tweak so as to ensure changes to the nick variables are always saved. Shouldn't fix anything anyone was seeing.
git-svn-id: svn://10.0.0.236/trunk@153980 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 13:24:28 +00:00
ian%hixie.ch
9ac65a0869 =This is quite a serious bug. Turns out that modules (of course) run in the scope of the method in which they were loaded... which means they can access variables such as 'nick' that are defined using my in the global scope. Ouch. Anyway, this fixes the problem with bots randomly losing their nick while using Karma. I would have caught it earlier, but I don't use Karma myself, so...
git-svn-id: svn://10.0.0.236/trunk@153979 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 13:19:23 +00:00
ian%hixie.ch
9f39054aec Oops. A long-standing error. The Admin module should be in all channels, it just shouldn't respond to commands in channels if allowChannelAdmin is 0. This fixes the join/part issue for people with allowChannelAdmin set to 0.
git-svn-id: svn://10.0.0.236/trunk@152876 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-18 16:08:45 +00:00
ian%hixie.ch
9d7a2c597c Riiiiight... Maths.... One day I'll get them right, honest. Hope nobody is using mozbot for conversions where it matters, I wouldn't want to be blamed, e.g., for a shuttle disaster or some such.
git-svn-id: svn://10.0.0.236/trunk@152874 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-18 14:42:55 +00:00
ian%hixie.ch
efcade7184 More documentation: Link from README to INSTALL, and add more help for channelKeys.
git-svn-id: svn://10.0.0.236/trunk@152793 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-15 18:28:11 +00:00
ian%hixie.ch
ec05034d44 Protect against a number of possible undefined string concatenations
git-svn-id: svn://10.0.0.236/trunk@152527 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:23:23 +00:00
ian%hixie.ch
485fadb041 If we've checked spelling, don't let Infobot (for example) answer it too.
git-svn-id: svn://10.0.0.236/trunk@152526 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:22:14 +00:00
ian%hixie.ch
eac5a24cdc Add in a missing key to the patProtected hash which was missed during the last checkin.
git-svn-id: svn://10.0.0.236/trunk@152525 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:21:35 +00:00
ian%hixie.ch
e191d12036 Reset lastNick at reconnect so that nick collisions on reconnect are handled correctly. (Also clean up a long line or two since I'm using a small monitor right now...)
git-svn-id: svn://10.0.0.236/trunk@152524 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:21:04 +00:00
ian%hixie.ch
ab94b0bcf1 Correct an off by one (order of magnitude) error, and change the code so it is even more like copy and paste... one day I really should unify these functions.
git-svn-id: svn://10.0.0.236/trunk@152455 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 03:35:07 +00:00
ian%hixie.ch
f84bf13a0b Hugs and Pats by popular request. Anyone else think this module is getting out of hand? :-)
git-svn-id: svn://10.0.0.236/trunk@152452 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 02:49:10 +00:00
ian%hixie.ch
f263364c7f We should never try to ask _ourselves_ what stuff is, that's just silly!
git-svn-id: svn://10.0.0.236/trunk@152412 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 12:19:13 +00:00
ian%hixie.ch
7b95e5f745 Oops, must reply to status in round 1. Make the Told handlers slightly happier about replying early.
git-svn-id: svn://10.0.0.236/trunk@152411 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 12:03:37 +00:00
ian%hixie.ch
01ce8e18df Ok, we don't really need ridiculouslyEagerToHelp, just use the autoHelp variable which is per channel.
git-svn-id: svn://10.0.0.236/trunk@152376 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 16:50:52 +00:00
ian%hixie.ch
cfab0c9e10 No longer support 'foo karma' or 'foo rank' since they clashed with 'help karma' and 'help rank' and other commands of that syntax.
git-svn-id: svn://10.0.0.236/trunk@152168 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 18:01:12 +00:00
ian%hixie.ch
2f43575406 Oops, Infobot was way too eager to help even in non-eager mode. Make the 'no,' prefix only take effect if the bot thinks it is a direct statement.
git-svn-id: svn://10.0.0.236/trunk@152160 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 10:38:14 +00:00
ian%hixie.ch
1b91695a6d Patch by Eira to support times and weight conversions. Reviewed and changed a bit by me.
git-svn-id: svn://10.0.0.236/trunk@152148 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 18:55:47 +00:00
ian%hixie.ch
8ddd24048a Remove spurious blank line which _seems_ to be causing problems in old perls.
git-svn-id: svn://10.0.0.236/trunk@152147 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:16:19 +00:00
ian%hixie.ch
53d6f6c85a Done Currency now. :-)
git-svn-id: svn://10.0.0.236/trunk@152146 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:15:46 +00:00
ian%hixie.ch
af5e2fc2b1 Currency convertor thanks to xe.com. Patch originally by Alex Schuilenburg <alex@schuilenburg.org>. Heavily edited by me. See bug 231120.
git-svn-id: svn://10.0.0.236/trunk@152145 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:06:18 +00:00
ian%hixie.ch
f3f6fbb43a Oops, checkRights was completely broken due to a couple of typos...
git-svn-id: svn://10.0.0.236/trunk@152143 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 14:30:31 +00:00
ian%hixie.ch
e0fcff84b0 Revamp of the way we handle nick problems.
git-svn-id: svn://10.0.0.236/trunk@152142 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 14:29:43 +00:00
ian%hixie.ch
a2cab20a10 Also accept 'commands' command instead of help, since it is what some people expect. We should probably also support 'list' but that is more likely to clash with other modules.
git-svn-id: svn://10.0.0.236/trunk@151953 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:09:40 +00:00
ian%hixie.ch
10e8cd8e2d Make the help line shorter so it doesn't wrap.
git-svn-id: svn://10.0.0.236/trunk@151952 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:08:18 +00:00
ian%hixie.ch
27c4316aae First, dramatically reduce the priority of Infobot responses. Especially with eager mode enabled, infobot was being ridiculously helpful, butting in to all kinds of conversations with other modules. Also, don't treat 'bla is bla?' as a statement. This may need tweaking some (now it treats it as a question for 'bla is bla', which you can't easily set anyway)
git-svn-id: svn://10.0.0.236/trunk@151951 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:07:05 +00:00
ian%hixie.ch
749ec32773 Oops, reality did not match the documentation. Fix reality. (once a module returns 0, stop using the handlers. Hopefully this won't break any modules.)
git-svn-id: svn://10.0.0.236/trunk@151950 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:02:49 +00:00
ian%hixie.ch
7570f93aec mixed case help lines were getting lost
git-svn-id: svn://10.0.0.236/trunk@151901 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 12:31:32 +00:00
ian%hixie.ch
931856198b Update documentation to match latest changes w.r.t. SpottedPart and SpottedQuit. Document 'unload' since three standard modules use it.
git-svn-id: svn://10.0.0.236/trunk@151878 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 01:42:28 +00:00
ian%hixie.ch
04b7e987b9 Make XMLLogger work again (fallout from the time patch a while back)
git-svn-id: svn://10.0.0.236/trunk@151877 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 01:29:18 +00:00
ian%hixie.ch
a78a11238a * Add more comments (especially XXX ones!).
* Rework how Parting, Quitting, and Kicking work:
* Fix bug 133965 (SpottedQuit and SpottedPart not sent for self) for SpottedPart.
  SpottedQuit part of the fix is more involved and is WONTFIX for now; I've added XXX comments where the fixes would have to go.
* Fixed the part message when leaving a channel through the 'part' command.
* Parting and Joining no longer ensure that they were (not already) in the channel before doing the /part of /join command.
* Admin module's Kicked is no longer called for the 'part' command, only when kicked.
* PartedChannel is now where the channel gets removed from the config, so if the server doesn't let the bot part, it won't remember that it has parted.


git-svn-id: svn://10.0.0.236/trunk@151876 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 01:28:18 +00:00
ian%hixie.ch
28d6ab334f Comment about possible bug in Kicked method
git-svn-id: svn://10.0.0.236/trunk@151865 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 23:25:37 +00:00
ian%hixie.ch
5fe8dc9baf in eager mode, it looks silly if we don't trim trailing dots.
git-svn-id: svn://10.0.0.236/trunk@151860 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 22:03:03 +00:00
ian%hixie.ch
6682668d89 Make the port optional since not everyone knows it's 3306 :-)
git-svn-id: svn://10.0.0.236/trunk@151858 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 21:55:38 +00:00
ian%hixie.ch
53e4556451 More ways to insult (and praise) the bot.
git-svn-id: svn://10.0.0.236/trunk@151857 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 21:34:09 +00:00
ian%hixie.ch
7ad690733a * Keep track of age of quotes so we can avoid showing some quotes more than others
* Remove commented out code
* Fix the search string parser to actually, er, work
* Don't report number of matches using numbers if there is only one
* Check database is up before reporting status
* Check database is not empty before reporting status
* Report most popular quote


git-svn-id: svn://10.0.0.236/trunk@151855 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 20:33:16 +00:00
ian%hixie.ch
61264a65a8 Crash protection for faulty modules that raise exceptions when reporting their help info.
git-svn-id: svn://10.0.0.236/trunk@151851 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 20:06:40 +00:00
jake%bugzilla.org
bfc8514519 Bug 232156: Bugzilla 2.17.3 changed some field names in the RDF output. Make Mozbot succeed with either schema.
r= bbaetz


git-svn-id: svn://10.0.0.236/trunk@151836 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 02:57:03 +00:00
ian%hixie.ch
db2c8cb185 Quotebot. Requires MySQL. Based on a specification written by Nortis http://www.blomstereng.org/
git-svn-id: svn://10.0.0.236/trunk@151835 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 00:48:52 +00:00
ian%hixie.ch
4d4d4c03ab Handle exceptions being raised in the Schedule() handler. Before, they would cause the bot to crash on startup and to say stupid things during module loading.
git-svn-id: svn://10.0.0.236/trunk@151830 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 13:49:54 +00:00
ian%hixie.ch
f6560e15fe Standardise on 'status' as the status command for all modules.
git-svn-id: svn://10.0.0.236/trunk@151829 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 13:05:45 +00:00
ian%hixie.ch
5f7cbc8e30 Support comments, p tags, and div tags.
git-svn-id: svn://10.0.0.236/trunk@151828 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 13:04:23 +00:00
ian%hixie.ch
0ff30abb52 Added some default hit protection. Removed a redundant variable definition. Implemented responses for tickling and apologies. Added some support for the moronic misspelt 'u' (you) form. Added support for shaking hands. Added some insults to handle and cleaned up (/x) two regular expressions that were getting very long.
git-svn-id: svn://10.0.0.236/trunk@151827 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 11:41:48 +00:00