Added in latest ynhub lua

Added in latest ynhub lua

Postby Gabberworld » Sun Mar 01, 2015 10:00 am

user.
Code: Select all
 bSupportsFeed
 bSupportsNoHello
 bSupportsNoGetINFO
 bSupportsGetZBlock
 bSupportsTTHSearch
 bSupportsUserIP
 bSupportsUserIP2
 bSupportsUserCommand
 bSupportsMCTo
 bSupportsBotINFO
 bSupportsZLine
 bSupportsDHT0
 bSupportsRTF0


core.Statistic()
core.Statistic(iPort)
Code: Select all
//Users
CurrentUsers
AuthorizingUsers
CurrentSharesize
PeakUsers
AllTimePeakUsers
NickEntries
IPEntries

// sharesize
PeakSharesize
AllTimePeakSharesize
PerUserSharesize

// core
CoreVersion
Uptime
UptimePeak
Recieving
Sending
Errors
ReadBuffers
WriteBuffers

// misc
TextCommands

// traffic info
MainchatMessages
PrivateMessages
ActiveSearches
PassiveSearches
SearchReplies
MyINFOs

// protocol
Nicklists
ConnectToMe
RevConnectToMe
Kicks
Redirects
MCTo
BotINFO
Feed

// drops
ReadbufferFull
WritebufferFull
SocketErrors
LoginTimeouts
IdleTimeouts
getDropSpamKicks

// hubs
getHubAccounts
Registered
NickBans
IPBans
getHubDNSBans
ClientBans
TempBans

// feed
ActionFeed
KickFeed
EventFeed
GUIFeed
ErrorFeed

// system
CPUUsage
CPUTime
MemoryUsage
PeakMemoryUsage
VirtualMemoryUsage
MemoryAvailable


examples
Code: Select all
----------------------------------------------------------------
local t = core.Statistic()
print(t.CurrentUsers)
----------------------------------------------------------------
local t = core.Statistic(411)
print(t.CurrentUsers)
t = core.Statistic(412)
print(t.CurrentUsers)
----------------------------------------------------------------
function UserConnected( User )
             if User.bSupportsRTF0 then 
                local msg = "$Rtf " .. logstring .. "|"
                SendToNick(User.sNick, msg )
             end
end


Gabberworld
Site Admin
 
Posts: 11
Joined: Sat Jan 04, 2014 12:50 am

Return to Lua

Who is online

Users browsing this forum: No registered users and 1 guest

cron