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

  # @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
  checkTypes : (checkers, args) ->
    if args?.length != checkers.length
      return new ChatServiceError 'wrongArgumentsCount'
      , checkers.length, args.length
