Continue rewriting, found a problem in the way I kill plugins.
This commit is contained in:
parent
fd8d5faf5f
commit
416460886d
9 changed files with 48 additions and 25 deletions
|
@ -34,9 +34,9 @@ traceM :: String -> IrcBot ()
|
|||
traceM msg = liftIO $ trace msg
|
||||
|
||||
-- | Logs an error message
|
||||
error :: String -> IO ()
|
||||
error msg = trace $ inColor msg [31]
|
||||
traceRed :: String -> IO ()
|
||||
traceRed msg = trace $ inColor msg [31]
|
||||
|
||||
errorM :: String -> a ()
|
||||
error msg = liftIO $ error msg
|
||||
errorM :: String -> IrcBot ()
|
||||
errorM msg = liftIO $ traceRed msg
|
||||
|
||||
|
|
Reference in a new issue