summaryrefslogtreecommitdiff
path: root/lib/Multi/IRC.pm
AgeCommit message (Collapse)AuthorFilesLines
2015-06-21Multi::IRC: Increase delay between random quotesYorhel1-1/+1
2015-06-15Multi::IRC: Some fixes wrt. chat loggingYorhel1-8/+6
2015-04-29Multi::(API:IRC): Fix some unicode handling issuesYorhel1-4/+6
I forgot that AnyEvent::Handle works with bytes rather than unicode strings, even though that is kind of obvious. I expected that AnyEvent::IRC would automatically handle the conversion between byte strings and Unicode strings, but it doesn't, so that has to be done manually.
2015-04-27Multi::IRC: Properly handle connection issuesYorhel1-5/+28
2015-04-27Multi: Backport staff database changes from master branchYorhel1-5/+10
Includes changes from 5926ce95395976456c0e15895d13491a81819087 and e20b19ce400ccf382a969a51777e0678ff8d44db
2014-10-31Multi::IRC: Converted to use AnyEventYorhel1-524/+355
It's not as fully featured as the previous implementation, but most of those features haven't been used for the past few years anyway. Also added a generic throttle implementation in Multi::Core, which can be re-used for the API.
2011-07-07Multi::IRC: Randomly kick people who use !quoteYorhel1-3/+5
2011-04-03Multi::IRC: Actually announce new traitsYorhel1-1/+1
2011-04-01Multi::IRC: Don't spam the channel with old trait announcementsYorhel1-2/+2
2011-03-30Multi::IRC: Forgot to add a character type somewhereYorhel1-0/+1
2011-02-19chardb: Made bb2html() and Multi::IRC aware of c+, c+.+ and i+Yorhel1-5/+8
2011-02-14chardb: Made Multi aware of traitsYorhel1-7/+16
Added new trait notify and i+ id-matching
2011-01-27TUWF: Use the uri_escape() provided by TUWFYorhel1-1/+2
2010-12-13Multi::IRC: Don't report new postsYorhel1-1/+1
Discussion board is too active. -.-;
2010-12-09Write VNDBUtil::uri_escape() and removed dependency on URI::EscapeYorhel1-4/+3
Its functionality is too simpel to require it as a special dependency, seriously.
2010-12-05API: Allow the API to be used without logging in with a username/passwordYorhel1-1/+1
It only served to scare potential developers away.
2010-03-13Multi::IRC: Changed !vn command to use the new search functionYorhel1-16/+15
2010-02-17Multi::IRC: Added !scr command for reverse screenshot lookupYorhel1-1/+27
2010-01-24Multi::IRC: Announcements are colored in blue rather than redYorhel1-14/+16
This way you can easily see the difference between an announcement and a regular user-requested reply.
2009-11-13Multi::IRC: Tweaked the idlequote timingsYorhel1-2/+2
She shouldn't spam a quote more than once every 48 hours per channel now. Also decreased the actual idle timeout, so that the channel doesn't have to be idle for that long.
2009-11-13Multi::IRC: More efficient and better throttle algorithmYorhel1-11/+11
Same algorithm I used for the API, although slightly more strict. Also put a throttle on the !quote command.
2009-11-08Multi::API/IRC: Added runtime API admin/monitoring interfaceYorhel1-13/+48
+ some runtime statistics + IP ban list (which is likely unnecessary, but you never know...)
2009-10-24Multi::IRC: Fixed SQL syntax errorYorhel1-1/+1
Introduced in 69d8738688ebb72707fe377b7ce7c717407aea96
2009-10-12SQL: Converted changes.type to an ENUMYorhel1-4/+4
This is a very important column in a very important table, I hope I didn't forget to update a piece of code somewhere...
2009-08-23Multi::IRC: lowercase channel names in idlequotesYorhel1-1/+1
2009-08-12Multi::IRC: Properly handle newlines in edit summariesYorhel1-0/+1
2009-08-11Multi::IRC: Various small improvementsYorhel1-5/+8
- Don't report edits made by Multi - Fixed a synchronisation issue in the double-notify detection - Users in the 'masters' list has access to 'OP' commands as well (without needing +o) - Doubled the quotes spam delay
2009-08-09Multi::IRC: Proper fix of the new notify detection codeYorhel1-16/+33
This is how I should have done it in the first place. Don't use stupid hacks if you know it's likely going to result in strange behaviour...
2009-08-09Multi::IRC: Got rid of crash in the throttle functionYorhel1-1/+1
2009-08-09Multi::IRC: Fix double-notify bugYorhel1-0/+1
timestamptz data types have sub-second precision, but we use time() with second precision for comparing, resulting in false positives. Using Time::HiRes::time should give the same precision as PostgreSQL's NOW(), so things should be working fine now. It's still a bad idea to use Multi's time instead of a PostgreSQL value for comparing... should really think of a clean way of fixing this.
2009-08-09Multi::IRC: Fixed authentication level checking bugYorhel1-3/+4
Everyone had access to the commands with the |8 flag enabled. Oops!
2009-08-09Converted changes.added to timestamptzYorhel1-1/+1
That was the last one. I hope I haven't forgotten to update anything.
2009-08-08Converted tags.added to timestamptzYorhel1-1/+1
2009-08-08Converted threads_posts.date and edited to timestamptzYorhel1-1/+1
Everything still seems to be working fine so far.
2009-08-05Multi::IRC: Added !p producer search and fixed tiny bug in !vnYorhel1-5/+31
2009-08-05Multi::IRC: Reimplemented notifications using PgSQL LISTEN/NOTIFYYorhel1-22/+66
2009-08-05Multi::IRC: Spam random quotes in idle channelsYorhel1-1/+15
'idle' is currently defined as 60+rand(300) minutes, so it'll only occur in *very* idle channels... might be an idea to lower these numbers later on.
2009-08-05Multi::IRC: Wrote generic throttle function and put a limit on !vn usageYorhel1-12/+40
2009-08-05Multi::IRC: Added !quote command to reply with a random quote from the DBYorhel1-2/+13
2009-08-05Multi::IRC: Re-added the !vn commandYorhel1-36/+36
Works as it did before. But maybe it's time to add a small throttle to prevent misuse?
2009-08-05Multi::IRC: Don't listen to unaddressed commands without the ! triggerYorhel1-2/+2
Tiny bug introduced in a recent commit.
2009-08-05Multi::IRC: Allow commands to be called by addressing the botYorhel1-10/+13
And force this for some commands. Calling !die in a channel with multiple bots isn't a good idea, after all...
2009-08-05Multi::IRC: Display edit summary on edit linksYorhel1-3/+9
2009-08-05Multi::IRC: Display board titles in thread linkingYorhel1-2/+19
Nothing beats seeing a: <Multi> [t2.7] Reply to Alias: added Japanese title Posted in db, u:retardsrox, u:nacchi, v:Natsu, Semi, Shoujo, v:Dal-eu Jajang-ga By applehq @ http://beta.vndb.org/t2.7
2009-08-04Started on Multi::IRC rewriteYorhel1-254/+246
Most of the functionality of the old IRC bot should be present again, with notifications and the !vn command being the only exceptions. I'll reimplement those later. The configuration has changed a little: - 'user' variable renamed to 'nick' - 'channel' renamed to 'channels' (it's an arrayref, after all) - the 'masters' variable now uses IRC masks rather than nicks This new version also has three user levels rather than two: regular users, OPs in the first channel, and 'masters'. This way #vndb OPs can get control over some useful functions as well. The 'master' functions are far too powerful and as such should only be used by the person operating the bot.
2009-07-03Implemented master_users check in Multi::IRCYorhel1-0/+1
2009-03-15Fixed Multi's ircnotify command for tagsYorhel1-1/+1
2009-03-14Handling of g# in Multi and bb2html, and IRC notify on tag creationYorhel1-5/+6
2008-11-12Fixed Multi to use relative paths and to use the new configuration filesYorhel1-7/+7
2008-08-18Found a definite and proper solution to fix the command synchronisation ↵yorhel1-1/+1
problems, fixed display of wrong ID for screenshot diff, and increased screenshot JPEG quality to 90 git-svn-id: svn://vndb.org/vndb@95 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b