Commit Graph

50 Commits

Author SHA1 Message Date
ShadowNinja e74ad783a0 Set metatable to _preconnect when disconnected and add connected field 2015-01-25 13:50:59 -05:00
ShadowNinja e216ce4b23 Add support for IRCv3 capabilty negotiation 2015-01-25 13:43:31 -05:00
ShadowNinja 3e310f45c1 Switch to Lua 5.2 module format 2015-01-25 13:35:19 -05:00
ShadowNinja 42938a5b5e Make Message() take a table 2015-01-25 12:46:59 -05:00
ShadowNinja c27e2ec7e9 Add support for tag escapes 2015-01-25 12:46:59 -05:00
ShadowNinja 1749c7a365 Use socket.sleep(sec) instead of socket.select(nil, nil, sec) 2015-01-25 12:46:59 -05:00
ShadowNinja 7adba31f8c Add a message queue 2015-01-25 12:46:59 -05:00
ShadowNinja 7024ad5512 Use Message objects internally and pass one to Do* hooks 2015-01-25 12:46:59 -05:00
ShadowNinja e958a7242a Add Message class and constructors for common messages 2015-01-25 12:46:59 -05:00
ShadowNinja 7e2c85764b Allow hooking to any IRC command 2015-01-25 12:46:58 -05:00
ShadowNinja 592a049027 Add RPL_ISUPPORT parsing 2015-01-25 12:46:58 -05:00
ShadowNinja 2ccee2a935 Sleep between thoughts when connecting to avoid eating CPU 2014-02-22 17:44:03 -05:00
ShadowNinja 5ab24e9ad1 Generate a new nickname when it is in use or erroneous and check the
provided nickname for validity
2013-10-07 16:15:27 -04:00
ShadowNinja d443e2eeeb Track user access changing and enable multi-prefix
This also changes the format of user.access.
2013-06-25 22:29:53 -04:00
ShadowNinja ddb788883e Interpret format codes passed to meta:send() literally if there are no format arguments 2013-06-25 21:55:43 -04:00
ShadowNinja 1d0480adba Add PreRegister hook
This is useful for CAP commands and SASL.
2013-06-25 21:55:24 -04:00
Jakob Ovrum 4c1e2248f8 Ignore empty lines 2011-04-24 08:24:14 +09:00
Jakob Ovrum 32d9a8b774 Moved handlers into irc.handlers module (also added updated irc.luadoc, forgot that last commit) 2010-07-21 09:52:02 +09:00
Jakob Ovrum 07f50242f4 Renamed hooks to conform with other hook names: OnUserModeIs -> OnUserMode, OnChannelmodeIs -> OnChannelMode 2010-07-21 09:45:37 +09:00
Joshua Simmons d6b4872384 According to RFC, NICK should be sent before USER (yes this is a real issue) 2010-07-21 01:13:20 +10:00
Joshua Simmons ca767c8b42 Cleaning up getline function 2010-07-21 01:12:31 +10:00
Joshua Simmons d3c6ab849b Fixing wrong method call 2010-07-21 01:11:29 +10:00
Joshua Simmons 04dbe436f3 Adding OnModeChange hook 2010-07-20 13:35:25 +10:00
Joshua Simmons 98ccd99f4d Fixing On(Channel/User)ModeIs arguments 2010-07-20 13:29:33 +10:00
Jakob Ovrum a37a7618ce Changed a bit of style stuff, tweaked verify calls here and there 2010-07-19 07:46:55 +09:00
Jakob Ovrum 2fe692f2ae merged with jsimmons/master 2010-07-19 07:17:38 +09:00
Jakob Ovrum afbe9d91ed added init.lua 2010-07-19 06:52:31 +09:00
Joshua Simmons b392b69f87 Adding ability for hooks to return, and OnRaw hook
By adding the ability for hooks to return, we can stop the processing of a line at any point.
This is used by the OnRaw hook such that any non-nil return value will cause the irc library to assume that line has been handled.
2010-07-19 05:48:15 +08:00
Joshua Simmons 41cbab629f Adding TLS/SSL support via LuaSec 2010-07-19 05:48:14 +08:00
Joshua Simmons 96c2fd3ac0 Fixing small typo and clarifying arguments 2010-07-18 21:21:55 +10:00
Joshua Simmons 1ce9e96ccd Merge remote branch 'jacop/master'
Conflicts:
	doc/luadoc.css
	init.lua
	util.lua
2010-07-18 20:50:08 +10:00
Joshua Simmons 50f223fe66 Fixing some whitespace, and line endings. 2010-07-18 19:43:50 +10:00
Jakob Ovrum 66361ac235 Added OnKick hook 2010-07-18 18:18:39 +09:00
Joshua Simmons 339d3c9d8d Passing prefix to mode handlers 2010-07-18 19:05:14 +10:00
Joshua Simmons ecafce9f0c Adding handlers: RPL_UMODEIS and RPL_CHANNELMODEIS 2010-07-17 23:21:50 +10:00
Joshua Simmons 9977943966 Adding ability for hooks to return, and OnRaw hook
By adding the ability for hooks to return, we can stop the processing of a line at any point.
This is used by the OnRaw hook such that any non-nil return value will cause the irc library to assume that line has been handled.
2010-07-17 23:19:07 +10:00
Joshua Simmons eac1f0d668 Adding TLS/SSL support via LuaSec 2010-07-17 23:14:37 +10:00
Jakob Ovrum 48ee749bb7 Cleaned up whitespace, now all indentation is done with 1 tab character 2010-07-17 11:48:32 +09:00
Jakob Ovrum 8f8feb00d7 added topic hooks 2010-07-17 11:43:17 +09:00
Jakob Ovrum 72a355cc70 Tweaked irc:whois a bit 2010-07-17 11:15:17 +09:00
Jakob Ovrum e866807a44 now handles topic changes 2010-07-17 11:00:58 +09:00
Jakob Ovrum 103d9cf4ce Fixed bug in previously untested path 2010-07-16 14:01:05 +09:00
Brandon Williams 2120cf9825 Add support for recognizing Unreal registered users 2010-06-28 02:16:58 +08:00
Jakob 009e09dae6 Fixed name tracking a bit, should be fairly complete now 2010-06-03 21:48:37 +02:00
Jakob a8211a7678 Fixed access parsing 2010-06-01 14:18:51 +02:00
Jakob b104df15cc Added channel names tracking 2010-06-01 01:39:34 +02:00
Jakob Ovrum d992dcc9ae Refactored structure 2010-03-10 20:03:36 +09:00
Jakob Ovrum 4f17455fbe Added irc:setmode() 2010-02-22 03:39:52 +09:00
Jakob Ovrum af2f48553f Added support for keyed channels 2010-02-22 03:09:13 +09:00
Jakob Ovrum 5fe3969a59 Wut 2010-02-21 23:59:29 +09:00