24 Commits

Author SHA1 Message Date
skizzerz
4fde6f9bae Convert var.ROLES and var.ORIGINAL_ROLES to Users
This gets rid of the (dced) hack, with var.DCED_LOSERS taking its place.
Succubus was not touched, as there is already a PR which converts it,
although the succubus events in other files were touched.

Some sites were updated to be (more) Users-aware, while others replaced
it with an old deprecated get_roles() API. As more things get converted,
these will hopefully get eliminated as well. A FIXME comment was added
to all such occurrences.
2017-12-12 16:25:56 -06:00
Vgr E. Barry
371f8488df Add shortcut to context comparison 2017-08-29 19:31:26 -04:00
jacob1
0aea09f066 fix italics being interpreted as newlines when sending messages (deadchat fix) 2017-03-11 21:36:12 -05:00
Vgr E. Barry
54ab59a36f Add some more hacky support for IRCds that are broken beyond hope 2017-01-25 21:47:13 -05:00
Vgr E. Barry
e227e0e958 Make sure that users.equals returns False if at least one argument is None 2017-01-25 21:26:59 -05:00
Vgr E. Barry
a0550f922b Allow passing a list or tuple to IRCContext.queue_message 2017-01-13 16:15:20 -05:00
Vgr E. Barry
fb7bf56579 Fix proper lowercasing, take 2 2017-01-13 12:13:32 -05:00
Vgr E. Barry
2cd410ace8 Fix lowercasing a hostname to not use IRC lowercasing 2017-01-13 12:05:16 -05:00
Vgr E. Barry
9014d5c35c Make comparing contexts easier 2016-12-19 13:09:12 -05:00
Vgr E. Barry
59e7c13a0b Move equals from users to context 2016-12-19 13:08:18 -05:00
Vgr E. Barry
dff024e5e4 Allow contexts to be used directly in str.format() calls 2016-12-09 10:56:34 -05:00
Vgr E. Barry
27b0c9578d Move static methods out of the IRCContext class 2016-11-22 07:42:07 -05:00
Vgr E. Barry
423f7e352c Fix IRCContext.send_messages 2016-11-22 07:40:29 -05:00
Vgr E. Barry
e922bb220e Move the message queuing to IRCContext 2016-11-20 08:25:45 -05:00
Vgr E. Barry
6d9017a4bd Improve context creation and lowercasing 2016-11-20 08:24:50 -05:00
Vgr E. Barry
9a71b34488 Improve message sending to properly split on the end of lines 2016-11-18 17:27:33 -05:00
Vgr E. Barry
112c908596 Allow an arbitrary number of arguments to IRCContext.send 2016-11-17 10:10:53 -05:00
Vgr E. Barry
a39ded6053 Improve handling of fake contexts 2016-11-06 17:27:09 -05:00
Vgr E. Barry
61bca595c5 Fix small oversight 2016-11-06 17:26:46 -05:00
Vgr E. Barry
d090e573b7 Greatly improve channel handling
This also does some more bits of rudimentary user handling, but most of it still remains to be done.

Note: This adds DEV_PREFIX to botconfig and LOG_PREFIX to settings (var), make sure to properly update your bot!
2016-11-02 22:31:54 -04:00
Vgr E. Barry
b4fc7ac82d Remove leftover parameter 2016-11-02 14:34:33 -04:00
Vgr E. Barry
fe141b288f Allow specifying a prefix (e.g. for channels) for context.send() 2016-10-31 22:22:48 -04:00
Vgr E. Barry
2877abea55 Update as per @skizzerz's comments 2016-10-26 20:06:29 -04:00
Vgr E. Barry
5ec273c6e0 New IRCContext, Channel and User classes
Right now these don't do anything, but in the future they will be how
we'll do channel and user handling.
2016-10-25 18:20:31 -04:00