-@lib.hook('get', needchan=False)
-def cmd_get(bot, user, chan, realtarget, *args):
- if realtarget == chan.name: replyto = chan
- else: replyto = user
+@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)))}