def irc_raw(triggers_param, **kwargs):
 def _raw_hook(func):
  hook = _get_hook(func, 'irc_raw')
  if (hook is None):
   hook = _RawHook(func)
   _add_hook(func, hook)
  hook.add_hook(triggers_param, kwargs)
  return func
 if callable(triggers_param):
  raise TypeError('@irc_raw() must be used as a function that returns a decorator')
 else:
  return (lambda func: _raw_hook(func))

def irc_raw ( triggers_param , ** kwargs ) : def _raw_hook ( func ) : hook = _get_hook ( func , 'irc_raw' ) if ( hook is None ) : hook = _RawHook ( func ) _add_hook ( func , hook ) hook . add_hook ( triggers_param , kwargs ) return func if callable ( triggers_param ) : raise TypeError ( '@irc_raw() must be used as a function that returns a decorator' ) else : return ( lambda func : _raw_hook ( func ) )
external raw decorator .