diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 047920f..bcd8d97 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -5948,6 +5948,10 @@ def fsay(cli, nick, rest): pm(cli, nick, "Usage: !fsay ") return + if rest[0] != botconfig.CHANNEL and (nick not in var.USERS or not is_admin(var.USERS[nick]["cloak"])): + pm(cli, nick, "You do not have permission to message this user/channel") + return + print('[%s] %s fsay %s: %s' % (time.strftime('%Y-%m-%dT%H:%M:%S%z'), nick, rest[0], rest[1])) @@ -5961,6 +5965,10 @@ def fact(cli, nick, rest): pm(cli, nick, "Usage: !fact ") return + if rest[0] != botconfig.CHANNEL and (nick not in var.USERS or not is_admin(var.USERS[nick]["cloak"])): + pm(cli, nick, "You do not have permission to message this user/channel") + return + print('[%s] %s fact %s: %s' % (time.strftime('%Y-%m-%dT%H:%M:%S%z'), nick, rest[0], rest[1]))