Commit Graph

261 Commits

Author SHA1 Message Date
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
ian%hixie.ch
2cdf4e84e1 * Support fluffy "tell me" prefix
* Fix a bug introduced in version 1.10 which made Infobot, ah, not work. (bug 223905, thanks to Charlie, Michael, and justdave)
* Support for more fluffy wording (expletives in questions)
* Space out some regular expressions
* Made the "anyone know what foo is" form actually work for the first time
* Fix the bug introduced 7 patches ago, which I partly fixed 5 patches ago, in which "targetted" comments wouldn't be, ah, targetted.
2004-01-24 23:48:11 +00:00
ian%hixie.ch
512bd2cee7 minor documentation error fix 2004-01-24 18:40:07 +00:00
justdave%syndicomm.com
8ebf9f1e35 small whitespace change to test cvs back-end changes related to this file 2004-01-21 07:58:31 +00:00
justdave%syndicomm.com
10486f21a3 Bug 115642: Use XML for buglists, and lots of other goodies. This makes the Bugzilla.bm module actually work now. :)
Patch primarily by Jake Steenhagen <jake@bugzilla.org> and Bradley Baetz <bbaetz@acm.org>
r= justdave
2004-01-21 07:45:39 +00:00
ian%hixie.ch
fd1fb4e679 eagerToHelp and ridiculouslyEagerToHelp modes. See bug 142371. 2003-10-26 12:14:39 +00:00
ian%hixie.ch
e1d6df8147 Bug 141346: 'I am' wasn't learning correctly. 2003-10-26 11:58:06 +00:00
ian%hixie.ch
160a2ba452 Escape nicks in regular expressions so that they still work even if the bot is called something silly like '[bot]'. Bug 134599. 2003-10-26 11:30:09 +00:00
ian%hixie.ch
9335e3bc94 fix minor grammar error 2003-10-19 22:33:00 +00:00
ian%hixie.ch
ab8bc94683 Homogenise the violence code a bit. 2003-10-19 22:13:42 +00:00
ian%hixie.ch
973a7c6064 Insult Generator. See bug 204356 for details. 2003-10-19 22:11:16 +00:00
ian%hixie.ch
8747fc4ba9 dumb bot 2003-10-19 21:06:56 +00:00
ian%hixie.ch
330e5c37e8 Improve the documentation for people troubleshooting connection problems. 2003-10-19 17:32:39 +00:00
ian%hixie.ch
b94cd9ee21 Undocumented (for now) feature: let the user override the bot's username from the config file by setting the 'username' configuration option to a true value (defaults to 0). 2003-10-19 17:02:07 +00:00
ian%hixie.ch
bd59fa0076 Support 'mozbot!' on its own. 2003-10-18 10:57:56 +00:00
ian%hixie.ch
7931dd2ce8 Be silently compatible with Infobot's 'karma' syntax. Bug 142377 2003-10-17 09:47:53 +00:00
ian%hixie.ch
f746e27ec1 Support password protected servers. bug 222129. 2003-10-16 21:17:39 +00:00
ian%hixie.ch
8321b8dfc5 implement 'lo' as a greeting 2003-10-16 19:42:34 +00:00
ian%hixie.ch
ed9b436ee6 reap children correctly (attempt number 77281). Correct misspellings in comments. Remove some redundant output. 2003-10-05 20:15:05 +00:00
ian%hixie.ch
e16e30afa3 Convert RDF.bm to use a real XML parser (now requires XML::RSS, available at your nearest CPAN mirror). Thanks to Jeff Bisbee. See bug 154826. 2003-10-05 20:06:38 +00:00
ian%hixie.ch
13f6d47a70 Bug 154337: A new output style for help, especially for people with few modules loaded. Based on a patch by Joel Thornton. 2003-10-04 18:18:49 +00:00
ian%hixie.ch
56f60886bc Add missing name. 2003-10-04 17:18:12 +00:00
ian%hixie.ch
badb68a63c Script for restarting mozbot from crontab. Based on a script by Joel Thornton <joelpt@eml.cc>. See bug 153043. 2003-10-04 17:17:04 +00:00
ian%hixie.ch
77e86a9bf0 Basic NickServ support. Tested with Q@cserve.quakenet.org, let me know if you have problems on other networks. 2003-10-04 13:03:50 +00:00
ian%hixie.ch
51a9513d72 primitive 'bitch' support 2003-10-04 13:01:22 +00:00
ian%hixie.ch
6dc1c0ef41 Updating credits for last checkin. 2003-10-04 12:13:31 +00:00
ian%hixie.ch
b06ad40bcd Bug 159567: improvements to user management. Based on a patch by Adam Di Carlo. Improvements include: 'deleteuser' admin command. 'changepassword' admin command. Better error messages when the two new passwords don't match. Edits to the INSTALL file. Also removes the recently added 'sleep' statement on quit since it wasn't helping. 2003-10-04 12:09:38 +00:00
ian%hixie.ch
5b19b980a5 Minor documentation changes (nothing substantial) 2003-10-04 11:06:48 +00:00
ian%hixie.ch
884f6797f0 Minor fixes: check that we can actually resolve the server (Net::IRC was being remarkably unhelpful in that regard), make the helpline a bit shorter (servers were cropping it), make us sleep when we quit (not sure it'll help, but maybe it'll help with the problem of us not always getting our /quit message across) 2003-10-04 00:23:57 +00:00
ian%hixie.ch
501a7510d5 Bug 215848: Cope with servers that don't like our IRC name. This is basically untested. 2003-10-04 00:06:46 +00:00
ian%hixie.ch
cc100f9da1 Bug 134600: Add some more modules to the default set. 2003-10-03 23:46:54 +00:00
ian%hixie.ch
31f4b76fbd Implement incoming Notice support in the BotModule APL. Bug 169882. Largely based on a patch by Ken Coar. 2003-10-03 23:35:49 +00:00
ian%hixie.ch
0f67329225 More diagnostics for localAddr users. (check the version of Net::IRC) 2003-10-03 23:03:52 +00:00
ian%hixie.ch
9103b2e742 Bug 131324: Stop the bot from saying the same thing n times in a row. 2003-10-03 21:01:48 +00:00
ian%hixie.ch
d80d23f8f1 Bug 124748: Stop time drift once and for all by using a globally initialised time() value. This was done as a pretty blind search-and-replace, so may have caused regressions and may be non-optimal. Please file bugs if you spot problems. This adds the entry 'time' to the event object. 2003-10-03 15:47:35 +00:00
ian%hixie.ch
37514d30b5 Make all instances of the time function have brackets, to make them easier to find. 2003-10-03 15:19:12 +00:00
ian%hixie.ch
af90e48a89 Bug 134617: Let users tell the bot to shut up. Adds a 'getMessageQueue' function to the bot API. Also fixes some unrelated minor issues in the developer documentation and makes a tiny optimisation in drainmsgqueue. 2003-10-03 15:08:42 +00:00
ian%hixie.ch
5e43dbaa22 Typo... 2003-09-24 21:28:27 +00:00
ian%hixie.ch
6d3257f5c7 Stop an infinite loop that occurs if you have questions all in the same category. Bug found by ltost. 2003-09-24 21:22:50 +00:00
ian%hixie.ch
b5920883b6 Upgrade ignoredUsers and implement ignoredTargets. Fixes bug 133067, adds a bunch of documentation. Other very minor typographical fixes. 2003-09-20 21:10:28 +00:00
ian%hixie.ch
22e3d1ab3b 'IGNORE' doesn't seem to work on all platforms. Let's go back to our old reaping code. It still seems to fix the bug. Also, fix another instance of the '/bin/bash might be tainted' problem. 2003-09-20 18:17:53 +00:00
ian%hixie.ch
0f42189a5d Change our child process handling behaviour to be more proactive and hopefully less likely to hang. This in theory fixes bug 111987, but who knows. Feel free to reopen that bug if it doesn't help or if it makes things worse (e.g. if you start seeing zombie processes everywhere). It seemed to work for me on Debian. 2003-09-20 17:27:09 +00:00
ian%hixie.ch
5b415d5da6 oops, removed the wrong line two changes ago. This makes Infobot work again. Thanks to Eira for noticing the bug. 2003-08-17 12:16:12 +00:00
ian%hixie.ch
25dfb6f913 labels can only go on blocks, not if statements, apparently. fixes bug 139646 2003-08-16 19:56:40 +00:00
ian%hixie.ch
685d9c3233 make help module give the topics for that module. fixes bug 145369. 2003-08-16 19:45:43 +00:00
ian%hixie.ch
5ecacbf785 allow smilies at the end of greetings 2003-08-16 19:34:01 +00:00
ian%hixie.ch
fb0f4c2456 more happy, more kinky, and more consistent in its handlings of various forms of greetings. 2003-08-14 13:52:43 +00:00
ian%hixie.ch
3d86463b34 Make help slightly more helpful 2003-08-14 13:45:40 +00:00
ian%hixie.ch
3b45418979 Correct my spelling and my maths. 2003-08-14 13:45:06 +00:00
ian%hixie.ch
246f85ca9c Make the opme command also take into account masks. 2003-08-13 13:15:57 +00:00
ian%hixie.ch
316139e003 Remove some redundant checks for bug 133134. 2003-08-12 16:37:25 +00:00
ian%hixie.ch
f19a8dbd96 Some more minor changes, and the addition of a response to '/me bites mozbot' (the 'kinky' responses, although they aren't very raunchy) 2003-08-12 16:35:59 +00:00
ian%hixie.ch
3ac2669d98 New temperature scales (optimised for air temperatures) 2003-08-12 16:29:29 +00:00
ian%hixie.ch
20c54860ca Make Rude actually tell you the right host when it fails. Also, clarify a comment. 2003-08-09 15:13:53 +00:00
ian%hixie.ch
1c351941fa Minor fix to autoop help. Patch by mental. 2003-08-09 15:13:03 +00:00
ian%hixie.ch
3e2088de28 Use DBM database instead of config file for seen data. Note that there is no migration path for old seen data, and that the config file isn't updated to remove the now superfluous variables. 2003-08-09 14:54:02 +00:00
ian%hixie.ch
d729cf9ea7 better error handling (to handle the case where the servers are totally down, like now) 2003-08-09 13:58:13 +00:00
ian%hixie.ch
d63f723feb Make mozbot slightly more willing to insult people (won't help much since the servers are down, but oh well) 2003-08-09 13:54:27 +00:00
ian%hixie.ch
990229393c minor comment fixup 2003-08-09 13:53:17 +00:00
ian%hixie.ch
5fbaadd4b6 Implement a hitting command, add some new variants to some existing commands 2003-08-09 13:49:36 +00:00
ian%hixie.ch
b4135edf15 Fix a minor warning 2003-08-09 13:48:22 +00:00
ian%hixie.ch
eed6008b54 Minor documentation fixes: typoes, slight inaccuracies, etc 2003-08-09 13:47:54 +00:00
ian%hixie.ch
e30b8ac746 Fix a typo which confused older Perls, and fix a big error in the handling of uppercase channel names. b=MasterTLH (thanks dude), p=Hixie, r=justdave,bbaetz 2002-07-10 13:56:22 +00:00
ian%hixie.ch
1043c55c39 '<stuart> right now its showing a teranchela(sp?) eating something or something' r=kerz 2002-04-09 21:23:57 +00:00
ian%hixie.ch
022fbeb04b Bumping version number to 2.5. 2002-04-01 07:46:34 +00:00
ian%hixie.ch
5c4df623d9 Infobot is a little eager. 'aaa is bbb' was being handled as 'is bbb' because 'aaa' matched the 'ah' regexp. Oops. r=justdave. 2002-04-01 06:19:26 +00:00
ian%hixie.ch
223b5637b0 Bumping version number to 2.4. 2002-04-01 05:17:41 +00:00
ian%hixie.ch
8199dba14c Kooking Module for those times when someone is annoying you. Original code by Keunwoo Lee, ported by Pike. b=128010, r=zach. 2002-04-01 05:10:01 +00:00
ian%hixie.ch
ad6c1d590e XML Logging Module. b=16226, r=kerz. 2002-04-01 05:08:37 +00:00
ian%hixie.ch
f80bef3886 Generic Conversion module. b=72933, r=zach. 2002-04-01 05:07:36 +00:00
ian%hixie.ch
90b08ac487 Change the // forms to m// forms. Comment some of the regexps. Allow multiple bugs to be caught on one line. b=76910, r=kerz. 2002-04-01 05:03:03 +00:00
ian%hixie.ch
672a8db99a Changes Tinderbox to use either say or notify, configurable via the 'useNotice' variable. b=72960, r=timeless 2002-04-01 04:46:24 +00:00
ian%hixie.ch
c455d29a91 Implements a magic eight-ball module. 2002-04-01 04:39:21 +00:00
ian%hixie.ch
71a6be2fe7 Use the new getHelpLine and getModules APIs instead of accessing \@modulenames and $helpline directly. This also makes the CTCP VERSION reply be sorted. b=130532, r=imajes 2002-04-01 04:32:42 +00:00
ian%hixie.ch
57e468fbbe Makes mozbot only mark joins as joined on a successful attempt. b=112049, r=kerz.
Implements getHelpLine and getModules API functions and updates documentation to match. b=130532, r=imajes.

Adds a notice() method to the mozbot API. Updates the documentation to reflect this. (Also updates the version and corrects a typo in the docs.) b=72960, r=timeless.

Fixes the problem whereby if a module doesn't load, it's not removed from the @modulenames list, which causes problems for modules that walk the @modulenames list to get each module in turn. b=133148, r=kerz.

The Log event for the Told event doesn't have the prefix text that made the event a Told event in the first place. This adds a field 'fulldata' to the event hash which will let loggers log the whole thing. Also updates documentation. b=133509, r=kerz.

Log events were not generated for events generated by the bot. This removes redundant checks to prevent that from happening (redundant since the server never sent us the messages in the first place) and then adds code to synthesise the relevant Log events. Updates the documentation to match. b=16226, r=kerz.

The Initialise handler was needlessly within the scope of an undef'd $/. This scopes the cause of this problem. b=131483, p=Robin Berjon, r=kerz, a=hixie.

Makes ctcpSend() send messages to the target, not the originator. This makes it work like say(). b=133140, r=caillion.

Adds a way to make the auth command not give confirmation feedback (quiet auth). b=134342, r=caillon.
2002-04-01 03:46:06 +00:00
ian%hixie.ch
10fa03034c Entries for empty lists were ignored when rewriting the configuration file. b=133179, r=timeless 2002-04-01 01:59:24 +00:00
ian%hixie.ch
3d7f568679 The 'seen' command should accept punctuation at the end, not consider it part of the nick to look for. b=133046, r=caillon. Some more friendliness. b=131323, r=caillon. 2002-03-31 23:53:11 +00:00
ian%hixie.ch
87223bdec0 Adds various different friendly prefixes to Infobot responses. b=131320, r=caillon. Makes mozbot ignore prefixes like peterv: at the start of auto-learnt factoids. b=132264, r=caillon. 2002-03-31 23:19:36 +00:00
ian%hixie.ch
14c7acad0f Minor typo in help text, ++ should be --. b=132195, p=mental, r=hixie 2002-03-24 16:54:07 +00:00