jwise / naim-oscar

OSCAR support for naim, written in Lua.
4 stars 0 forks source link

Hide :DEBUG messages? #7

Closed orie closed 13 years ago

orie commented 13 years ago

I get fairly constant messages from the OSCAR LUA plugin, which is somewhat annoying when i use ctrl-n to get to my current "new" messages. I see where it seems to inject to :DEBUG in your code, but I was wondering if there's any easy way to disable the debug logs until I might need them?

I successfully compiled this on FreeBSD btw, so that's good news. I'm no developer but I know enough to do basic code patches and so on.

Ex: [18:23:00] [debug] [BOS] [Blist online] EBART type 0 [18:23:00] [debug] [BOS] [Blist online] EBART type 1 [18:23:00] [debug] [BOS] [Blist online] EBART type 129 [18:23:00] [debug] [BOS] [Blist online] EBART type 1024 [18:23:00] [debug] [BOS] [Blist online] friendnic [class 0011] [online] [18:24:00] [debug] [BOS] [ICBM]

Thanks for the work, it's nice to be able to chat on AIM using NAIM again. :)

orie commented 13 years ago

Nevermind, i'm blind.

For those who are searching for this, change the following line in OSCAR.lua from: OSCAR.DEBUG = 0x01 to: OSCAR.DEBUG = 0x00

jwise commented 13 years ago

No, there should be an easier way to do this. I'll add a /msg :DEBUG command for it when I get home.

You are a brave man to use this full time -- please keep filing bugs as you find them!

jwise commented 13 years ago

Commit 1486abc adds the command "verbose"; try "/msg :DEBUG verbose 0x1E" to turn off debug messages. Enjoy!

orie commented 13 years ago

Great, thanks! Yeah I like living on the bleeding edge. It's been amazingly stable so far, i'm shocked.