mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 06:30:57 +01:00
registry: Hide warning when channel is 'global'.
This commit is contained in:
parent
f408f6cc42
commit
2eb32de26e
@ -435,11 +435,14 @@ class Value(Group):
|
|||||||
# Also, we're setting them to None instead of raising an error in
|
# Also, we're setting them to None instead of raising an error in
|
||||||
# order not to break existing plugins.
|
# order not to break existing plugins.
|
||||||
if channel and not ircutils.isChannel(channel):
|
if channel and not ircutils.isChannel(channel):
|
||||||
from . import log
|
if channel != 'global':
|
||||||
log.warning(
|
# excluding 'global', it's a special value used for linking
|
||||||
'Trying to get channel-specific value of %s for channel %s, '
|
# channels and by some plugins.
|
||||||
'but it is not a channel. This is a bug, please report it.',
|
from . import log
|
||||||
self._name, channel)
|
log.warning(
|
||||||
|
'Trying to get channel-specific value of %s for channel %s, '
|
||||||
|
'but it is not a channel. This is a bug, please report it.',
|
||||||
|
self._name, channel)
|
||||||
channel = None
|
channel = None
|
||||||
if network:
|
if network:
|
||||||
from . import world # put here to work around circular dependencies
|
from . import world # put here to work around circular dependencies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user