# Generic filters for FMN

def user_filter(config, message, fasnick):
    """ Filters the messages by the user that performed the action.

    Use this filter to filter out messages that are associated with a
    specified user.
    """
    print config

    return fasnick in fedmsg.meta.msg2usernames(message)

# Generic filters for FMN
import fedmsg

def user_filter(config, message, fasnick=None, *args, **kw):
    """ Filters the messages by the user that performed the action.

    Use this filter to filter out messages that are associated with a
    specified user.
    """

    fasnick = kw.get('fasnick', fasnick)
    if fasnick:
        return fasnick in fedmsg.meta.msg2usernames(message)

Fix the user_filter to handle arguments properly
Fix the user_filter to handle arguments properly

fasnick=None is required so that the argument is displayed in the UI
*args, **kw is actually how the arguments are passed to the filter for it to run
This **kw is the actual important bit here.