ian%hixie.ch
47f159ceab
Minor typo... (eagull->seagull)
2004-04-24 23:54:35 +00:00
ian%hixie.ch
bea143cbe1
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
d86870c0c7
=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
c9f35a8e9e
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
269c0bb22e
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
001a4c888a
More documentation: Link from README to INSTALL, and add more help for channelKeys.
2004-02-15 18:28:11 +00:00
ian%hixie.ch
7ed20a2b00
Protect against a number of possible undefined string concatenations
2004-02-08 22:23:23 +00:00
ian%hixie.ch
bbbaaf451f
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
51621a7121
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
d545d32f9e
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
777724c5a1
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
a4e75759c7
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
2fc58d69c0
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
a465568412
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
4189dc0677
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
23c5450f1d
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
19907f20c9
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
dc9df6b4e2
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
6bb7fc47be
Remove spurious blank line which _seems_ to be causing problems in old perls.
2004-02-01 16:16:19 +00:00
ian%hixie.ch
28c8232692
Done Currency now. :-)
2004-02-01 16:15:46 +00:00
ian%hixie.ch
6c15a54452
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
cd9de4873b
Oops, checkRights was completely broken due to a couple of typos...
2004-02-01 14:30:31 +00:00
ian%hixie.ch
a91a367173
Revamp of the way we handle nick problems.
2004-02-01 14:29:43 +00:00
ian%hixie.ch
e04f6d3fa6
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
0f673dbef7
Make the help line shorter so it doesn't wrap.
2004-01-28 13:08:18 +00:00
ian%hixie.ch
a3a4130475
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
f24ed6ab8d
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
fe839a2369
mixed case help lines were getting lost
2004-01-27 12:31:32 +00:00
ian%hixie.ch
25077e6cc0
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
14075125c3
Make XMLLogger work again (fallout from the time patch a while back)
2004-01-27 01:29:18 +00:00
ian%hixie.ch
cb26702f03
* 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
617f195c21
Comment about possible bug in Kicked method
2004-01-26 23:25:37 +00:00
ian%hixie.ch
c147440f3f
in eager mode, it looks silly if we don't trim trailing dots.
2004-01-26 22:03:03 +00:00
ian%hixie.ch
e239b32498
Make the port optional since not everyone knows it's 3306 :-)
2004-01-26 21:55:38 +00:00
ian%hixie.ch
af40ed588f
More ways to insult (and praise) the bot.
2004-01-26 21:34:09 +00:00
ian%hixie.ch
a40bf9acdd
* 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
ed47087267
Crash protection for faulty modules that raise exceptions when reporting their help info.
2004-01-26 20:06:40 +00:00
jake%bugzilla.org
7248ced448
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
5259b4c612
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
07c133f1c6
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
8e92e66100
Standardise on 'status' as the status command for all modules.
2004-01-25 13:05:45 +00:00
ian%hixie.ch
d828839a5b
Support comments, p tags, and div tags.
2004-01-25 13:04:23 +00:00
ian%hixie.ch
16365fd40c
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
d4f15faacd
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
cdfee27e24
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
f545615f80
Oops, need double quotes to interpolate...
2004-01-25 01:03:45 +00:00
ian%hixie.ch
9f0e341e1a
Some more drastic auto-fixing code for really annoying servers.
2004-01-25 00:53:50 +00:00
ian%hixie.ch
8d471be1bb
Make mozbot try to use a valid username if it thinks it needs to (this is untested; what do servers normally complain about when the identd isn't valid? I've seen this happen but I forget the actual string they send back). Also, fix an undefined variable warning in the wordWrap method.
2004-01-25 00:45:38 +00:00
ian%hixie.ch
d0b875b352
Upgrade the insult protection overrides to be more customisable. Add more of them by default. Note that this is not a backwards compatible change but since we haven't released a version with this module yet, that's ok.
2004-01-25 00:08:43 +00:00
ian%hixie.ch
fe573d34c5
New fortune cookie format, in case we ever add more types of cookies. Limit on size of cookie file, to prevent trivial DOS attack. Prevent the addition of duplicate cookies.
2004-01-24 23:56:12 +00:00