 
   # @private
   # @nodoc
-  checkTypes : (checkfn, args) ->
-    checkers = checkfn()
+  checkTypes : (checkers, args) ->
     if args?.length != checkers.length
       return new ChatServiceError 'wrongArgumentsCount'
       , checkers.length, args.length

  # @nodoc
  constructor : (@server) ->
    @checkers = new Map
    for name, fn of @server.userCommands
      @checkers.set name, _.bind @[name], @
    @directMessagesChecker = @server.directMessagesChecker
    @roomMessagesChecker = @server.roomMessagesChecker
    @customCheckers =
      directMessage : [ null, @directMessagesChecker ]
      roomMessage : [ null, @roomMessagesChecker ]

  # Check command arguments.
  #

  # @private
  # @nodoc
  getArgsCount : (name) ->
    checker = @checkers.get name
    unless checker then return 0
    return checker.length || 0

  # @private
  # @nodoc
