   pong: (server1, server2) ->
     if server2
       return "PONG #{server1} #{server2}"
-    return "PONG #{server2}"
+    return "PONG #{server1}"
   error: (errormessage) ->
-    return "ERROR #{errormessage}"
+    return "ERROR :#{errormessage}"

      return "MODE #{nickname} #{mode}"
    return "MODE #{nickname}"
  service: (nickname, distribution, type, info) ->
    return "SERVICE #{nickname} * #{distribution} #{type} * #{info}"
  quit: (quitmessage) ->
    if quitmessage
      return "QUIT :#{quitmessage}"
    return "QUIT"
  squit: (server, comment) ->
    return "SQUIT #{server} #{comment}"

  # Section 3.2 - Channel operations
  join: (channel, key) ->
    if keys
      return "JOIN #{channel} #{key}"
    return "JOIN #{channel}"
  part: (channel, reason) ->

      return "STATS #{query}"
    return "STATS"
  links: (servermask, remoteserver) ->
    if remoteserver
      return "LINKS #{remoteserver} #{servermask}"
    if servermask
      return "LINKS #{servermask}"
