author | unc0rr |
Wed, 30 Apr 2008 20:18:30 +0000 | |
changeset 892 | dfe97199f17e |
parent 891 | 701f86df9b4c |
child 893 | 149244d86bf1 |
permissions | -rw-r--r-- |
module HWProto where import IO import Miscutils handleCmd :: ClientInfo -> [ClientInfo] -> [RoomInfo] -> [String] -> ([ClientInfo], [String]) handleCmd client clients _ ("QUIT":xs) = if null (room client) then ([client], ["QUIT"]) else (clients, ["QUIT", nick client]) handleCmd client _ _ _ = ([client], ["Bad command"])