diff options
author | Teddy Wing | 2017-08-13 18:53:45 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-13 18:53:45 +0200 |
commit | 9209ccaadc40c294c85a8191a02330abea133bd6 (patch) | |
tree | fbe0ba6a651419b5b61e5ee824e4de649e2cccce /src/Lib.hs | |
parent | f6d317f1e36f7fbd83e5f47b54a3c1f5a5ceedde (diff) | |
download | sorbot-9209ccaadc40c294c85a8191a02330abea133bd6.tar.bz2 |
dispatchEvent: Ignore user's hostname argument
We don't need this information. I was just saving it to find out what
that argument actually was.
Diffstat (limited to 'src/Lib.hs')
-rw-r--r-- | src/Lib.hs | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -6,7 +6,6 @@ module Lib import qualified Data.ByteString as B import qualified Data.Text as T -import qualified Data.Text.Encoding as TE import Database.SQLite.Simple import qualified Network.IRC.Client as IRC @@ -47,8 +46,8 @@ handlePrivmsg = IRC.EventHandler , IRC._eventFunc = \evt -> dispatchEvent evt } where - dispatchEvent (IRC.Event serv (IRC.User nick) (IRC.Privmsg _ (Right msg))) = - IRC.send $ IRC.Privmsg nick (Right (TE.decodeUtf8 serv)) - dispatchEvent (IRC.Event serv - (IRC.Channel chan nick) (IRC.Privmsg _ (Right msg))) = - IRC.send $ IRC.Privmsg chan (Right (TE.decodeUtf8 serv)) + dispatchEvent (IRC.Event _ (IRC.User nick) (IRC.Privmsg _ (Right msg))) = + IRC.send $ IRC.Privmsg nick (Right "test") + dispatchEvent (IRC.Event + _ (IRC.Channel chan nick) (IRC.Privmsg _ (Right msg))) = + IRC.send $ IRC.Privmsg chan (Right "test") |