Enochen / bastmush

Automatically exported from code.google.com/p/bastmush
0 stars 0 forks source link

Have StatMonitor send messages to Fiendish's Comm Log #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Plugin Name:StatMonitor

Enhancement:
I frequently miss the level messages in my main window, but don't always want 
to spam grouptalk channel with all my messages.  I'd suggest if you set a 
channel in the StatMonitor plugin to "commlog" that it echoes in the main 
window as it would if hadn't set a channel, but also sends it to the Comm Log.  
Fiendish actually includes a wonderful function for this a few versions back.

I actually put this on my local version and my code looks like this.

[code]
function DisplayInfo( info, type )
  local typechan = phelper[type..'chan']
  if typechan == "commlog" or typechan == 'None' or not typechan then
    TextToColourTell(strjoin('', info))
    ColourNote( "", "", "" )
    if typechan == "commlog" then
        CallPlugin("b555825a4a5700c35fa80780","storeFromOutside", strjoin('', info))
    end
  else
    SendNoEcho(typechan .. ' ' .. strjoin('', info))
  end
end
[/code]

Original issue reported on code.google.com by mendal...@gmail.com on 24 Jan 2012 at 12:47

GoogleCodeExporter commented 9 years ago
this is in the next release.

Original comment by enda...@gmail.com on 29 Jan 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by enda...@gmail.com on 29 Jan 2012 at 8:05