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
ian%hixie.ch
3719ebe853
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
4d10cefada
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
724de21dff
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
1bbf8a1fcc
* 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
f2a733b86a
minor documentation error fix
2004-01-24 18:40:07 +00:00
justdave%syndicomm.com
e53da56cd5
small whitespace change to test cvs back-end changes related to this file
2004-01-21 07:58:31 +00:00
justdave%syndicomm.com
d673994daf
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
e59f2e3941
eagerToHelp and ridiculouslyEagerToHelp modes. See bug 142371.
2003-10-26 12:14:39 +00:00
ian%hixie.ch
027565eb9e
Bug 141346: 'I am' wasn't learning correctly.
2003-10-26 11:58:06 +00:00
ian%hixie.ch
f17e1550d0
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
fee0655e91
fix minor grammar error
2003-10-19 22:33:00 +00:00
ian%hixie.ch
03344c9c03
Homogenise the violence code a bit.
2003-10-19 22:13:42 +00:00
ian%hixie.ch
0044f92d43
Insult Generator. See bug 204356 for details.
2003-10-19 22:11:16 +00:00
ian%hixie.ch
c8acfaa0ec
dumb bot
2003-10-19 21:06:56 +00:00
ian%hixie.ch
1edb803b08
Improve the documentation for people troubleshooting connection problems.
2003-10-19 17:32:39 +00:00
ian%hixie.ch
7708664bdd
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
146f340f3c
Support 'mozbot!' on its own.
2003-10-18 10:57:56 +00:00
ian%hixie.ch
b9bc201a96
Be silently compatible with Infobot's 'karma' syntax. Bug 142377
2003-10-17 09:47:53 +00:00
ian%hixie.ch
4e01a751b0
Support password protected servers. bug 222129.
2003-10-16 21:17:39 +00:00
ian%hixie.ch
f3bfd8b281
implement 'lo' as a greeting
2003-10-16 19:42:34 +00:00
ian%hixie.ch
309a602d7e
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
c52772141c
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
584c144e10
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
76a655d873
Add missing name.
2003-10-04 17:18:12 +00:00
ian%hixie.ch
4aa3dcd464
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
aadbe033f6
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
dc2286f4b2
primitive 'bitch' support
2003-10-04 13:01:22 +00:00
ian%hixie.ch
dd5e271f81
Updating credits for last checkin.
2003-10-04 12:13:31 +00:00
ian%hixie.ch
0d8c92bf8a
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
c94bd27e75
Minor documentation changes (nothing substantial)
2003-10-04 11:06:48 +00:00
ian%hixie.ch
f651435ba8
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
9bae650412
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
ae4b8465b6
Bug 134600: Add some more modules to the default set.
2003-10-03 23:46:54 +00:00
ian%hixie.ch
5c0d97549c
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
123d2c4203
More diagnostics for localAddr users. (check the version of Net::IRC)
2003-10-03 23:03:52 +00:00
ian%hixie.ch
e148db075c
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
fde870de15
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
9074fb4cc2
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
11f8578752
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
3c448272a7
Typo...
2003-09-24 21:28:27 +00:00
ian%hixie.ch
93062ca7e5
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
5a2bd48f3d
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
ebbbda9786
'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
5d5d01046d
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
1a82f9d912
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
88136213bb
labels can only go on blocks, not if statements, apparently. fixes bug 139646
2003-08-16 19:56:40 +00:00
ian%hixie.ch
838efb60bc
make help module give the topics for that module. fixes bug 145369.
2003-08-16 19:45:43 +00:00
ian%hixie.ch
01b816884b
allow smilies at the end of greetings
2003-08-16 19:34:01 +00:00
ian%hixie.ch
b4ffec79a9
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
0a27519760
Make help slightly more helpful
2003-08-14 13:45:40 +00:00
ian%hixie.ch
edfd101935
Correct my spelling and my maths.
2003-08-14 13:45:06 +00:00
ian%hixie.ch
db1c10af8f
Make the opme command also take into account masks.
2003-08-13 13:15:57 +00:00
ian%hixie.ch
512ad60ef4
Remove some redundant checks for bug 133134.
2003-08-12 16:37:25 +00:00
ian%hixie.ch
5998d1541b
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
7cda790d57
New temperature scales (optimised for air temperatures)
2003-08-12 16:29:29 +00:00
ian%hixie.ch
0377641f7d
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
35eaed6202
Minor fix to autoop help. Patch by mental.
2003-08-09 15:13:03 +00:00
ian%hixie.ch
3d830992a8
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
c80027b099
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
2bd1f19d52
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
c92583f0e2
minor comment fixup
2003-08-09 13:53:17 +00:00
ian%hixie.ch
abc173fea9
Implement a hitting command, add some new variants to some existing commands
2003-08-09 13:49:36 +00:00
ian%hixie.ch
4a3e94ed23
Fix a minor warning
2003-08-09 13:48:22 +00:00
ian%hixie.ch
4c10d3ae34
Minor documentation fixes: typoes, slight inaccuracies, etc
2003-08-09 13:47:54 +00:00
ian%hixie.ch
23e35d582f
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
058d9cc959
'<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
667cab3ce5
Bumping version number to 2.5.
2002-04-01 07:46:34 +00:00
ian%hixie.ch
b543d6d14c
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
2f11b93392
Bumping version number to 2.4.
2002-04-01 05:17:41 +00:00
ian%hixie.ch
5d9ec60ea6
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
695bba35bd
XML Logging Module. b=16226, r=kerz.
2002-04-01 05:08:37 +00:00
ian%hixie.ch
af9f14a5d1
Generic Conversion module. b=72933, r=zach.
2002-04-01 05:07:36 +00:00
ian%hixie.ch
3a9632841d
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
7325ff43cc
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
1e5a5f252d
Implements a magic eight-ball module.
2002-04-01 04:39:21 +00:00
ian%hixie.ch
2adebbfa76
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
9f5c032a8a
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
12695e498b
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
d938dcb7d8
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
7be271e2e1
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
99eaab6597
Minor typo in help text, ++ should be --. b=132195, p=mental, r=hixie
2002-03-24 16:54:07 +00:00
ian%hixie.ch
921721ff3f
2.3 development has begun
2002-03-24 02:28:42 +00:00