-@lib.hook(needchan=False)
-@lib.help("[<user>] <item>", "gets an info item about you or someone else")
+@lib.hook(needchan=False, wantchan=True)
+@lib.help("[<target>]", "lists info items known about someone", "<target> may be a nick, or an auth in format '#auth'", "it defaults to yourself")
+def getitems(bot, user, chan, realtarget, *args):
+ if len(args) > 0:
+ target = args[0]
+ else:
+ target = user
+
+ return "%(target)s has the following info items: %(items)s" % {'target':target,'items':(', '.join(keys(target)))}
+
+@lib.hook(needchan=False, wantchan=True)
+@lib.help("[<target>] <item>", "gets an info item about someone", "<target> may be a nick, or an auth in format '#auth'", "it defaults to yourself")