Граф коммитов

242 Коммитов

Автор SHA1 Сообщение Дата
ian%hixie.ch 130ba14fbd Rude is no longer that useful, but is left here for posterity's sake. Add a comment noting the demise of its servers. 2004-09-04 16:30:13 +00:00
ian%hixie.ch b479f7a60a God should also do autovoice. Add a comment to this effect. (Actually it should do a lot more, see bug 240259) 2004-09-04 16:26:56 +00:00
ian%hixie.ch 2e5f3f9bb4 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. 2004-09-04 16:22:37 +00:00
ian%hixie.ch 72e69d8d5c Minor typo... (eagull->seagull) 2004-04-24 23:54:35 +00:00
ian%hixie.ch 4fe0a7d6b0 Minor tweak so as to ensure changes to the nick variables are always saved. Shouldn't fix anything anyone was seeing. 2004-03-15 13:24:28 +00:00
ian%hixie.ch 169ba19b7e =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... 2004-03-15 13:19:23 +00:00
ian%hixie.ch e3696860a3 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. 2004-02-18 16:08:45 +00:00
ian%hixie.ch 2aa477d22c 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. 2004-02-18 14:42:55 +00:00
ian%hixie.ch 4fcc2f5222 More documentation: Link from README to INSTALL, and add more help for channelKeys. 2004-02-15 18:28:11 +00:00
ian%hixie.ch bedba9aa88 Protect against a number of possible undefined string concatenations 2004-02-08 22:23:23 +00:00
ian%hixie.ch ad9e84c450 If we've checked spelling, don't let Infobot (for example) answer it too. 2004-02-08 22:22:14 +00:00
ian%hixie.ch 8e4877446a Add in a missing key to the patProtected hash which was missed during the last checkin. 2004-02-08 22:21:35 +00:00
ian%hixie.ch 283207c75c 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...) 2004-02-08 22:21:04 +00:00
ian%hixie.ch 427912d561 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. 2004-02-07 03:35:07 +00:00
ian%hixie.ch d38269bc0c Hugs and Pats by popular request. Anyone else think this module is getting out of hand? :-) 2004-02-07 02:49:10 +00:00
ian%hixie.ch c77423e353 We should never try to ask _ourselves_ what stuff is, that's just silly! 2004-02-06 12:19:13 +00:00
ian%hixie.ch 5b2e299e99 Oops, must reply to status in round 1. Make the Told handlers slightly happier about replying early. 2004-02-06 12:03:37 +00:00
ian%hixie.ch 2125cd4ed4 Ok, we don't really need ridiculouslyEagerToHelp, just use the autoHelp variable which is per channel. 2004-02-05 16:50:52 +00:00
ian%hixie.ch e823201f7f No longer support 'foo karma' or 'foo rank' since they clashed with 'help karma' and 'help rank' and other commands of that syntax. 2004-02-02 18:01:12 +00:00
ian%hixie.ch ac19044a7e 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. 2004-02-02 10:38:14 +00:00
ian%hixie.ch 44aa341d04 Patch by Eira to support times and weight conversions. Reviewed and changed a bit by me. 2004-02-01 18:55:47 +00:00
ian%hixie.ch df5257b933 Remove spurious blank line which _seems_ to be causing problems in old perls. 2004-02-01 16:16:19 +00:00
ian%hixie.ch c451e19286 Done Currency now. :-) 2004-02-01 16:15:46 +00:00
ian%hixie.ch 3d95b13238 Currency convertor thanks to xe.com. Patch originally by Alex Schuilenburg <alex@schuilenburg.org>. Heavily edited by me. See bug 231120. 2004-02-01 16:06:18 +00:00
ian%hixie.ch 19c6b34f3a Oops, checkRights was completely broken due to a couple of typos... 2004-02-01 14:30:31 +00:00
ian%hixie.ch 3ac70a84e4 Revamp of the way we handle nick problems. 2004-02-01 14:29:43 +00:00
ian%hixie.ch 7126fa6307 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. 2004-01-28 13:09:40 +00:00
ian%hixie.ch 577637eb51 Make the help line shorter so it doesn't wrap. 2004-01-28 13:08:18 +00:00
ian%hixie.ch b8929c3271 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) 2004-01-28 13:07:05 +00:00
ian%hixie.ch bd25744be1 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.) 2004-01-28 13:02:49 +00:00
ian%hixie.ch 4f93720127 mixed case help lines were getting lost 2004-01-27 12:31:32 +00:00
ian%hixie.ch b4aceb3767 Update documentation to match latest changes w.r.t. SpottedPart and SpottedQuit. Document 'unload' since three standard modules use it. 2004-01-27 01:42:28 +00:00
ian%hixie.ch 73026a05c1 Make XMLLogger work again (fallout from the time patch a while back) 2004-01-27 01:29:18 +00:00
ian%hixie.ch 5408424753 * 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.
2004-01-27 01:28:18 +00:00
ian%hixie.ch 4984be571b Comment about possible bug in Kicked method 2004-01-26 23:25:37 +00:00
ian%hixie.ch c1ecf34acc in eager mode, it looks silly if we don't trim trailing dots. 2004-01-26 22:03:03 +00:00
ian%hixie.ch 1be294e054 Make the port optional since not everyone knows it's 3306 :-) 2004-01-26 21:55:38 +00:00
ian%hixie.ch ab92a4b0cf More ways to insult (and praise) the bot. 2004-01-26 21:34:09 +00:00
ian%hixie.ch 853a4c61f5 * 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
2004-01-26 20:33:16 +00:00
ian%hixie.ch f7c8bcc2b2 Crash protection for faulty modules that raise exceptions when reporting their help info. 2004-01-26 20:06:40 +00:00
jake%bugzilla.org 2258f1c728 Bug 232156: Bugzilla 2.17.3 changed some field names in the RDF output. Make Mozbot succeed with either schema.
r= bbaetz
2004-01-26 02:57:03 +00:00
ian%hixie.ch 58e40deaaa Quotebot. Requires MySQL. Based on a specification written by Nortis http://www.blomstereng.org/ 2004-01-26 00:48:52 +00:00
ian%hixie.ch abf3f1c631 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. 2004-01-25 13:49:54 +00:00
ian%hixie.ch f902f650e2 Standardise on 'status' as the status command for all modules. 2004-01-25 13:05:45 +00:00
ian%hixie.ch 507e542c9e Support comments, p tags, and div tags. 2004-01-25 13:04:23 +00:00
ian%hixie.ch bdf4d93741 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. 2004-01-25 11:41:48 +00:00
ian%hixie.ch 5b19409013 Don't send PASS unless there is a password. Make some debug messages a little clearer. Report PASS errors. And most importantly: Correctly handle NICK changes. We will now only change our internal memory of our nick when the server tells us what are nick is. As part of this, stop using the Net::IRC concept of the Current Nick, since that is completely broken. Handles invalid nicks much more gracefully. 2004-01-25 02:48:32 +00:00
ian%hixie.ch b33678fe6a Remove excessive trailing spaces. Fix a bug where I was setting the wrong variable (duh), this should make the username/identd stuff actually work. Make the mail regarding the server being down actually show the right values. Split some debug lines onto two for clarity. 2004-01-25 01:12:34 +00:00
ian%hixie.ch e91bfeb3d1 Oops, need double quotes to interpolate... 2004-01-25 01:03:45 +00:00
ian%hixie.ch 90116b4b98 Some more drastic auto-fixing code for really annoying servers. 2004-01-25 00:53:50 +00:00