From 8551832bd29508f36b6820e19d4af0525b1cba50 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 21 Apr 2010 22:39:03 +0200 Subject: Add the IrcMsg as an optional parameter for an internal command. --- Hsbot/IRCPlugin.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Hsbot/IRCPlugin.hs') diff --git a/Hsbot/IRCPlugin.hs b/Hsbot/IRCPlugin.hs index d4dcb82..568eb1d 100644 --- a/Hsbot/IRCPlugin.hs +++ b/Hsbot/IRCPlugin.hs @@ -28,7 +28,7 @@ sendCommand :: String -> String -> String -> IrcPlugin () sendCommand cmd to params = do serverChan <- gets instanceServerChan from <- gets instanceName - liftIO $ writeChan serverChan $ InternalCmd $ IntCmd cmd from to params + liftIO $ writeChan serverChan $ InternalCmd $ IntCmd cmd from to params Nothing sendRegisterCommand :: String -> IrcPlugin () sendRegisterCommand cmd = sendCommand "REGISTER" "CORE" cmd -- cgit v1.2.3