@lib.hook('ram', needchan=False, glevel=lib.MANAGER)
def cmd_ram(bot, user, chan, realtarget, *args):
- if chan is not None: replyto = chan
+ if realtarget == chan.name: replyto = chan
else: replyto = user
try:
@lib.hook('resources', needchan=False, glevel=lib.MANAGER)
def cmd_resources(bot, user, chan, realtarget, *args):
- if chan is not None: replyto = chan
+ if realtarget == chan.name: replyto = chan
else: replyto = user
try: