Commit Graph
100 Commits
Author SHA1 Message Date
Elijah Perrault ae6cfc4e99 Russell has been demoted to contributor. 2011-01-23 22:49:46 -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 1d9ef3776d Use -no_match_vars 2011-01-22 18:42:20 -07:00
Elijah Perrault 5906a7ab26 Appease PerlCritic. 2011-01-22 18:06:04 -07:00
Elijah Perrault d9786db1ab More cleaning. 2011-01-22 10:08:12 -07:00
Elijah Perrault 532ab47d6c Use if instead of unless 2011-01-22 10:05:05 -07:00
Elijah Perrault 8196a45d1e More cleaning up. 2011-01-22 09:52:57 -07:00
Elijah Perrault df7aeaab44 Use system() 2011-01-22 09:49:20 -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 23b0a4e627 Fixed a typo. 2011-01-21 19:31:16 -07:00
Elijah Perrault f925d2a370 I fail. API::IRC not API::Std. 2011-01-21 19:08:56 -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 9b6eecb797 More version/name information. 2011-01-21 18:55:38 -07:00
Elijah Perrault 3d2bee79f1 Cleaned up println() 2011-01-21 18:51:54 -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 1e178687bc Also parsing what channels the bot is in. 2011-01-21 16:30:34 -07:00
Elijah Perrault 0330cfeab3 Merge branch 'indev' of github.com:Xelhua/Auto into indev 2011-01-21 16:29:25 -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 2acaef26e0 Also added events: on_sigterm, on_sigint, on_sighup. 2011-01-21 13:56:05 -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 359f219f22 Fixed example config. 2011-01-21 11:22:16 -07:00
Elijah Perrault 02b072897a Updated example config to include server:idstr. 2011-01-21 00:45:07 -07:00
Elijah Perrault 1cc231f9a7 Merge branch 'indev' of github.com:Xelhua/Auto into indev 2011-01-21 00:40:45 -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 a4317ecec7 Delete auto.pid on shutdown. 2011-01-21 00:14:42 -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
Elijah Perrault 43bcb86d90 * Use nick() for initial NICK.
* Parse Numeric:433.
* Added %botnick for storing the bot's nick.
* Renamed mode() to cmode() in API::IRC's @EXPORT_OK
2011-01-20 20:59:50 -07:00
Elijah Perrault ccc66f5a4e Added nick() to API::IRC and fixed a typo. 2011-01-20 20:47:20 -07:00
Elijah Perrault 40db6be9ca Added $got_001 to Parser::IRC for checking if we've been sent 001. 2011-01-20 20:38:09 -07:00
Elijah Perrault a04707ebb2 Renamed API::IRC::mode() to cmode() 2011-01-20 20:26:31 -07:00
Elijah Perrault 0bc1cc17af $NEWLINE is no longer used. 2011-01-20 16:48:57 -07:00
Elijah Perrault b6069b1424 Added mod_init() and mod_void() to API::Std. 2011-01-20 16:10:53 -07:00
Elijah Perrault d950449424 Use Class::Unload. 2011-01-20 15:08:52 -07:00
Elijah Perrault 07c7240e86 Proper formatting. 2011-01-20 14:44:10 -07:00
Elijah Perrault 25aa6378ac Forgot a period. 2011-01-20 14:41:46 -07:00
Elijah Perrault 3cac9a3f54 Fixed a typo and formatting. 2011-01-20 14:41:06 -07:00
Elijah Perrault 5716570080 Handle SIGTERM, SIGINT and SIGHUP. 2011-01-20 14:35:42 -07:00
Elijah Perrault bf64eeb5ef Fixed. 2011-01-20 00:27:46 -07:00
Elijah Perrault 62db3f9df3 Fixed mode. 2011-01-20 00:26:34 -07:00
Elijah Perrault 1ce1b537ff This was for testing purposes. 2011-01-19 23:23:05 -08:00
Elijah Perrault f2472322d1 Use exit, not die. 2011-01-20 00:21:55 -07:00
Elijah Perrault 5b08a271c2 Merge branch 'indev' of github.com:Xelhua/Auto into indev 2011-01-19 23:30:27 -07:00
Elijah Perrault 5f8cedbbd6 Updated TODO. 2011-01-19 23:29:56 -07:00
Elijah Perrault c5f5004c94 Merge branch 'indev' of github.com:Xelhua/Auto into indev 2011-01-19 23:20:29 -07:00
Elijah Perrault f6f8180b5d Updated docs. 2011-01-19 23:20:18 -07:00
Elijah Perrault ce65efecf1 Updated. 2011-01-19 22:42:48 -07:00
Elijah Perrault df2ee65c43 Fixed formatting. 2011-01-19 22:42:25 -07:00
Elijah Perrault bd6c55f4ef This is server, not servers. 2011-01-19 22:34:50 -07:00
Elijah Perrault 7d109edabd Added 'darwin' to outputs for Mac. 2011-01-19 22:02:32 -07:00
Elijah Perrault 70b1a6c4c3 Fail Git... 2011-01-19 18:23:18 -07:00
Elijah Perrault cd78b37fc9 Bug fix: err() fatal errors now work. They didn't work due to bad regex. 2011-01-19 18:22:06 -07:00
Elijah Perrault 0791e61b68 Added an installation script. 2011-01-19 18:13:55 -07:00
Elijah Perrault fd5859c852 Fork into the background if not in debug mode. 2011-01-19 16:22:15 -07:00
Elijah Perrault 5e65bb31e3 Use API::IRC. 2011-01-19 16:04:37 -07:00
Elijah Perrault 03e0857713 Begin on API::IRC. 2011-01-19 15:40:40 -07:00
Elijah Perrault 3573c7339b * Parse the data.
* Parse PING and Numeric:001.
2011-01-19 15:11:05 -07:00
Elijah Perrault cff3b8662d Begin on the IRC parser. 2011-01-19 14:42:53 -07:00
Elijah Perrault 6e3b69510d Package before use. 2011-01-19 14:39:39 -07:00
Elijah Perrault 7426cce121 Updated the example config. 2011-01-19 14:27:04 -07:00
Elijah Perrault 17f75b1f5c More status messages. 2011-01-19 14:22:02 -07:00
Elijah Perrault ca26d04b5c Added sockets. Support for multiple asynchronous sockets. 2011-01-19 14:11:48 -07:00
Elijah Perrault 29fdfe65b2 Bug fix: conf_get() now returns correct data by checking what type of reference the requested value is. 2011-01-18 20:37:49 -07:00
Elijah Perrault 9c3e0082fc Changed license to 3-clause "New" BSD License. 2011-01-17 18:36:48 -07:00
Elijah Perrault a3898fcf98 License changed to 4-clause BSD License. 2011-01-17 17:06:07 -07:00
Elijah Perrault 64dabaa872 Make sure $out is defined. 2011-01-17 16:42:22 -07:00
Elijah Perrault a1757d685f Oops, this is a hash, not an array. 2011-01-17 11:57:31 -07:00
Elijah Perrault 8917048b80 Fixed a bug and started sockets. 2011-01-17 11:56:29 -07:00
Elijah Perrault b00085fc2f Fixed a slight issue. 2011-01-17 01:02:52 -07:00
Elijah Perrault dc31a3d36c Foundation completed. 2011-01-17 00:43:13 -07:00
Elijah Perrault d8501cc02e Don't call alog() before parsing the config file. As the config file is necessary for logging. 2011-01-17 00:40:33 -07:00
Elijah Perrault b19c7ba028 Fixed some typos. 2011-01-17 00:25:52 -07:00
Elijah Perrault 7a096c59b6 Finished foundation. 2011-01-17 00:22:14 -07:00
Elijah Perrault e46279e914 Fixed a hidden issue. 2011-01-17 00:17:30 -07:00
Elijah Perrault 6906cb3a49 Use English if the language is not found. 2011-01-17 00:01:15 -07:00
Elijah Perrault 95419d212d Added option for a fatal error. 2011-01-16 23:44:20 -07:00
Elijah Perrault 9c951f0d21 Oops, wrong file. 2011-01-16 23:41:08 -07:00
Elijah Perrault 87534d309f Added API function err() 2011-01-16 23:40:33 -07:00
Elijah Perrault 513e8fc506 Added API function dbug() 2011-01-16 23:26:46 -07:00
Elijah Perrault 3118964e80 Added a debug mode. 2011-01-16 23:22:34 -07:00
Elijah Perrault 293b08a761 More comments. Old logs now expire. 2011-01-16 23:19:11 -07:00
Elijah Perrault aae22bd6f1 Fixed use and added a call to expire_logs() 2011-01-16 23:17:23 -07:00
Elijah Perrault 8c6ad62d7e Updated. 2011-01-16 23:10:13 -07:00
Elijah Perrault 7872a9dc4f Updated change log. 2011-01-16 23:06:55 -07:00
Elijah Perrault 64c48cbb28 Added API function alog() 2011-01-16 22:55:49 -07:00
Elijah Perrault 1c5f329c70 Added expire_logs() 2011-01-16 22:37:51 -07:00