Here's a simple patch to supybot-fedora to have the 'fas' command also search ircnicks, for folks like myself whose ircnicks are not the same as their FAS name.
diff --git a/plugin.py b/plugin.py index 79e4204..96c24cb 100644 --- a/plugin.py +++ b/plugin.py @@ -164,9 +164,11 @@ class Fedora(callbacks.Plugin): username = self.userlist[user]['username'] email = self.userlist[user]['email'] name = self.userlist[user]['human_name'] + ircnick = self.userlist[user]['ircnick'] if username == find_name.lower() or \ email.lower().find(find_name.lower()) != -1 or \ - name.lower().find(find_name.lower()) != -1: + name.lower().find(find_name.lower()) != -1 or \ + ircnick.lower().find(find_name.lower()) != -1: matches.append("%s '%s' <%s>" % (username, name, email)) if len(matches) == 0: irc.reply("'%s' Not Found!" % find_name)
_______________________________________________ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list