3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

utils: introduce deprecation warnings for applyModes and parseModes

This commit is contained in:
James Lu 2016-04-24 21:44:02 -07:00
parent a8fc9428cf
commit f1351bb3f5

View File

@ -119,9 +119,7 @@ def parseModes(irc, target, args):
This method is deprecated. Use irc.parseModes() instead.
"""
# TODO: migrate plugins and core to use the new methods before enabling this.
# Otherwise these warnings become super floody!
#log.warning("(%s) utils.parseModes is deprecated. Use irc.parseModes() instead!", irc.name)
log.warning("(%s) utils.parseModes is deprecated. Use irc.parseModes() instead!", irc.name)
return irc.parseModes(target, args)
def applyModes(irc, target, changedmodes):
@ -131,9 +129,7 @@ def applyModes(irc, target, changedmodes):
This method is deprecated. Use irc.applyModes() instead.
"""
# TODO: migrate plugins and core to use the new methods before enabling this.
# Otherwise these warnings become super floody!
#log.warning("(%s) utils.applyModes is deprecated. Use irc.applyModes() instead!", irc.name)
log.warning("(%s) utils.applyModes is deprecated. Use irc.applyModes() instead!", irc.name)
return irc.applyModes(target, changedmodes)
def joinModes(modes):