Daniel Folkinshteyn
854e086fa7
Topic: get shouldn't require capabilities, since it's a read-only operation.
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 22:04:35 -04:00
Daniel Folkinshteyn
d691a91636
Topic: fix bug in invalid number error output.
...
Previously, when giving an invalid positive number, error would reference number-1 as being invalid.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 20:52:27 -04:00
James McCoy
9b855beec6
Merge branch 'typos'
2011-10-23 19:41:54 -04:00
Valentin Lorentz
f1690e6867
Topic: fix typo in @unlock help.
...
Conflicts:
plugins/Topic/locale/fr.po
plugins/Topic/messages.pot
src/version.py
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-10-23 19:36:46 -04:00
Valentin Lorentz
9561c9f417
Topic: Fix bad doctring
...
Conflicts:
plugins/Topic/messages.pot
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-10-23 19:36:08 -04:00
James Vega
44eb449ba4
Topic: Ensure do315's response is for a channel in our state object
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2011-08-01 17:17:22 -04:00
James Vega
5ccb242657
Re-add re import since capability-checking code relies on it.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-05-15 21:55:05 -04:00
Štěpán Němec
18ef6dadfc
Topic plugin: Restore topic automatically after join if not set.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-05-11 18:23:33 -04:00
Štěpán Němec
6520d1f282
Topic plugin: Add persistence support.
...
Topics now persist between restarts.
Rationale: Useful when reloading/restarting; previously the topics would
be just forgotten. Don't use database, as that would be an unnecessary
overkill and in any case not needed.
(Also, remove the unused `re' module import.)
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-05-11 18:22:37 -04:00
Daniel Folkinshteyn
814d89e200
topic now checks for +t mode before denying topic changes, and also allows halfops in addition to ops.
...
default required capabilities for topic changes (if topic is +t and user is not an op or halfop), are chan,op and chan,halfop
thanks jemfinch for the suggestions.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-14 22:57:01 -04:00
Daniel Folkinshteyn
063dd24677
change Topic to have a default required capability set, for all write operations.
...
by default, now only allows chanops, and users with admin or channel,op capability to change topics
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-14 22:56:52 -04:00
James Vega
5af38453a8
Update Topic to use registry.TemplatedString
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-15 22:35:17 -04:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
Jeremy Fincher
a373b17f02
Fixed a typo in the help for Topic.format.
2006-01-21 04:34:57 +00:00
James Vega
35065b8fc5
plugins/Topic: Remove an unnecessary call to irc.state.getTopic.
2005-06-13 17:13:04 +00:00
James Vega
a477f12f47
plugins/Topic: Add a proper test for the previous Topic.set fix.
2005-06-01 21:06:04 +00:00
Jeremy Fincher
4da1f38235
Fixed the security issue nicktastic reported, and made sure that if, for some reason, an error doesn't raise an exception, it still stops the calling of the command function.
2005-06-01 20:13:33 +00:00
James Vega
fab281b9b7
Long line.
2005-05-29 03:58:39 +00:00
James Vega
d5653077d3
plugins/Topic: Fix a bug with Topic.set where setting topic 1 would set the entire topic.
2005-05-19 17:23:31 +00:00
James Vega
e4242ba994
plugin/Topic: Keep track of what the channel's topic is when we join so that we can undo the first topic change.
2005-05-19 17:21:44 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
Jeremy Fincher
b0cb616709
Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin.
2005-02-09 07:04:04 +00:00
James Vega
14837bc544
Added Topic.fit.
2005-02-04 05:04:40 +00:00
Jeremy Fincher
94bfb279e6
Some format character changes, and a little more information on the "Topic exceeds maximum length" error message.
2005-02-02 04:42:22 +00:00
Jeremy Fincher
309b693e86
Added Topic in the new plugin format.
2005-02-02 04:39:30 +00:00