Commit Graph
95 Commits
Author SHA1 Message Date
Elijah Perrault a22ee16ffb * Added has_priv() to API::Std.
* Finished the host-based privilege/permission system.
* Fixed some typos.
2011-01-30 13:31:16 -07:00
Elijah Perrault fe30643e02 unless is ugly, in this case. 2011-01-30 13:17:03 -07:00
Elijah Perrault 22d1ca4534 Typo in comment. 2011-01-30 12:45:45 -07:00
Elijah Perrault a04e181378 Added match_mask() to API::IRC and match_user() to API::Std, match_user checks
config user:mask to find a user block, if a match is found, the configured username
is returned.
2011-01-30 10:26:51 -07:00
Elijah Perrault ccce5d5ef6 Added rchook_add() and rchook_del() to API::Std. 2011-01-29 20:39:07 -07:00
Elijah Perrault bbc3dfd966 Parse NOTICE and added hook on_notice. 2011-01-29 17:18:28 -07:00
Elijah Perrault 344500bcd7 Added hooks on_uprivmsg and on_cprivmsg. 2011-01-29 17:14:47 -07:00
Elijah Perrault ce58dbe132 Made hook_add and hook_del exportable. 2011-01-29 15:02:22 -07:00
Elijah Perrault 3a2687a4be Made cmd_add and cmd_del exportable. 2011-01-29 14:59:23 -07:00
Elijah Perrault 0090e48ee4 * Module names are now case sensitive.
* Added config option module for auto-loading a module.
2011-01-29 14:34:38 -07:00
Elijah Perrault 802dff20df Add 1; 2011-01-29 11:53:05 -07:00
Elijah Perrault 272df844d8 Use return. 2011-01-29 11:52:23 -07:00
Elijah Perrault 2d834f3f61 Use return. 2011-01-29 11:49:07 -07:00
Elijah Perrault 2a0c7360f0 Be proper: Use glob not <>. 2011-01-29 11:48:10 -07:00
Elijah Perrault c1e1a32589 Code cleanup. 2011-01-29 11:45:59 -07:00
Elijah Perrault d60dee11d0 * Fixed a bug in API::Log that caused invalid months.
* Changed how command data is passed to fix a bug.
2011-01-29 01:05:03 -07:00
Elijah Perrault e1d79d17c2 Get rid of this. 2011-01-28 22:46:15 -07:00
Elijah Perrault 41d74bd20e * Removed dependency Async.
* Rewrote the socket engine.
* Added cmd_add|del|run() to API::Std for commands.
* Parse PRIVMSG.
2011-01-28 22:36:59 -07:00
Elijah Perrault 2d0388abd9 Added names() to EXPORT_OK 2011-01-25 11:26:52 -07:00
Elijah Perrault 9c698e4162 Use return. 2011-01-24 22:27:48 -07:00
Elijah Perrault 98cfa1acac Added names() to API::IRC which sends NAMES. 2011-01-24 22:26:04 -07:00
Elijah Perrault 6f9a250211 Parse NAME replies (Numeric:353). 2011-01-24 22:10:53 -07:00
Elijah Perrault c1ab769a58 Send $svr too. 2011-01-24 19:21:00 -07:00
Elijah Perrault 53422a7545 Parse Numeric:005 and store PREFIX's data. 2011-01-24 19:16:42 -07:00
Elijah Perrault 1ca0c9a078 * Bug fix: The bot's nick is now stored correctly.
* Added server:modes config option for setting modes on connect.
2011-01-24 18:51:42 -07:00
Elijah Perrault bd547ea64a Use return (to appease PerlCritic) 2011-01-23 23:33:48 -07:00
Elijah Perrault 44908af99c Parse TOPIC. 2011-01-23 23:31:05 -07:00
Elijah Perrault 94c69bf5bd Use proper open()'s and renamed write() to mwrite() as Perl has write() 2011-01-22 22:37:37 -07:00
Elijah Perrault b922617203 Use proper open()'s 2011-01-22 22:32:41 -07:00
Elijah Perrault 02335e0f31 Renamed $src{ident} to $src{user} 2011-01-22 09:47:05 -07:00
Elijah Perrault 94b3569598 Cleaned up the code a bit. 2011-01-21 21:48:20 -07:00
Elijah Perrault 352c8d3e12 Added DB::Flatfile for DB:: database functions. 2011-01-21 20:54:51 -07:00
Elijah Perrault d115085df1 Added umode() to API::Std. 2011-01-21 19:07:02 -07:00
Elijah Perrault dbfde5c33b Fixed a warning I missed and a typo. 2011-01-21 18:58:14 -07:00
Elijah Perrault 359f64649f Cleaned up println() 2011-01-21 18:49:01 -07:00
Elijah Perrault dda0b7785b Added events on_ucjoin, on_rcjoin and on_nick. 2011-01-21 18:16:28 -07:00
Elijah Perrault 97361c3ec1 Parse numerics 465, 471-475 and 477. 2011-01-21 18:05:46 -07:00
Elijah Perrault e0ad8bd911 Added an optional @args onto event_run() for sending @args to the subs that have hooked onto the event. 2011-01-21 17:44:27 -07:00
Elijah Perrault 3afdcfd374 Rewrote how we parse what channels the bot is in. 2011-01-21 16:39:10 -07:00
Elijah Perrault 27fbbd9208 * Parse Numeric:438.
* Rewrote how we parse changing the bot's nick.
2011-01-21 16:28:39 -07:00
Elijah Perrault 159600b669 Added timer_add() and timer_del() to API::Std for timers. 2011-01-21 14:15:52 -07:00
Elijah Perrault 0024ebf7b0 Added event_add|del|run() and hook_add|del() to API::Std for managing and running events/hooks. 2011-01-21 13:54:53 -07:00
Elijah Perrault ed65193529 * server:nspass removed. server:idstr added.
* Changed the way we parse strings to support multi-word
      strings in config values.
2011-01-21 00:39:49 -07:00
Elijah Perrault 11806811d3 Added server:nspass to config. Will be replaced in the future by idstr. 2011-01-20 22:47:01 -07:00
Elijah Perrault 512c351577 * Parse NICK.
* Do not import API::IRC subroutines to Parser::IRC, instead use the class.
* Added usrc() to API::IRC for formatting a source.
2011-01-20 21:46:43 -07:00
Elijah Perrault e872082eb9 Oops, forgot to add to EXPORT_OK. 2011-01-20 21:44:50 -07:00
Elijah Perrault 8ca426316a Added awarn() to API::Std for warnings. 2011-01-20 21:43:39 -07:00
Elijah Perrault 60ad4803af Import err() 2011-01-20 21:18:32 -07:00
Elijah Perrault 387ab2393b * Parse Numeric:432.
* Delete $botnick var on quit.
2011-01-20 21:16:17 -07:00
Elijah Perrault 7b986d8d87 More comments. 2011-01-20 21:03:51 -07:00