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