mirror of https://github.com/Mikaela/Limnoria.git
registry: Hide warning when channel is 'global'.
This commit is contained in:
parent
f408f6cc42
commit
2eb32de26e
|
@ -435,6 +435,9 @@ 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):
|
||||||
|
if channel != 'global':
|
||||||
|
# excluding 'global', it's a special value used for linking
|
||||||
|
# channels and by some plugins.
|
||||||
from . import log
|
from . import log
|
||||||
log.warning(
|
log.warning(
|
||||||
'Trying to get channel-specific value of %s for channel %s, '
|
'Trying to get channel-specific value of %s for channel %s, '
|
||||||
|
|
Loading…
Reference in New Issue