#TITLE=Lua 5.0.2 ; EditPlus Lua/ptokax Syntax File ; Function regexp: ^[ \t]*function[ \t]*[a-z_].*\(.*\) ; Created by Skrollster 20 Sept 2004 ; skrollster@lightnetwork.org ; updates by plop ; added BCDC ; added aquila. ; added verlihub ; Function pattern: ^(.*[^a-zA-Z0-9_])?function([^a-zA-Z0-9_].*)?$ #DELIMITER=+-*/%^#=~<>(){}[];:,. #QUOTATION1=' #QUOTATION2=" #CONTINUE_QUOTE=n #LINECOMMENT=-- #LINECOMMENT2= #COMMENTON=--[[ #COMMENTOFF=]] #COMMENTON2=--[=[ #COMMENTOFF2=]=] #ESCAPE=\ #CASE=y #PREFIX1= #PREFIX2= #PREFIX3= #PREFIX4= #PREFIX5= #SUFFIX1= #SUFFIX2= #SUFFIX3= #SUFFIX4= #SUFFIX5= #HTML_EMBEDDED= #SCRIPT_BEGIN= #SCRIPT_END= #HEREDOC= #AUTOCASE= #NUMBER_PATTERN=cpp #SPECIAL_STX= ; Reserved words #KEYWORD=Reserved Words and break do else elseif end false for function if in local nil not or repeat return then true until while #KEYWORD=Library _ALERT _ERRORMESSAGE _INPUT _OUTPUT _STDERR _STDIN _STDOUT _VERSION coroutine string table math io os debug assert collectgarbage dofile error _G getfenv getmetatable gcinfo ipairs loadfile loadlib loadstring next pairs pcall print rawequal rawget rawset require setfenv setmetatable tonumber tostring type unpack _VERSION xpcall #KEYWORD=Operators , ( ) { } [ ] - + * % / = ~ & | < > : ^; . , #KEYWORD=sub library ;coroutine create resume status wrap yield ;String byte char dump find len lower rep sub upper format gfind gsub ;Table concat foreach foreachi getn sort insert remove setn ;Mathematical abs acos asin atan atan2 ceil cos deg exp floor log log10 max min mod pow rad sin sqrt tan frexp ldexp random randomseed pi ;Input and Output close flush input lines open output read tmpfile type write close flush lines read seek write ;Operating System clock date difftime execute exit getenv remove rename setlocale time tmpname ;The Reflexive Debug Interface debug gethook getinfo getlocal getupvalue setlocal setupvalue sethook traceback #KEYWORD=Data sending ;-------------- Ptokax SendToAll SendToAll SendPmToAll SendToNick SendPmToNick SendToOps SendPmToOps ;-------------- Aquila ChatToAll ChatToNick PMToAll PMToNick RawToNick RawToAll ;-------------- Verlihub SendDataToUser SendDataToAll SendPMToAll ;-------------- BCDC chat ownChat ownCHatOut pm hubPm sendChat SendHubMessage injectChat InjectHubMessage sendPrivMsgTo injectPrivMsg injectPrivMsgFmt attention sendPrivMsgFmt SendActiveSearchResult SendUDP #KEYWORD=bad user stuff ;-------------- Ptokax GetItemByName DisconnectByName GetBannedItemIp GetBannedItemName Ban NickBan Unban SendData SendData SendPM Disconnect Kick Kick Ban NickBan TempBan TimeBan Redirect GetTempBannedItemIp GetTempBannedItemName TempUnban ClearTempBan ;-------------- aquila UserKick UserDrop UserBan UserBanNick UserBanIP UserBanIPHard BanIP BanIPHard UnBan UnBanNick UnBanIP UnBanIPHard Zombie UnZombie FindNickBan FindIPBan Report ;-------------- Verlihub CloseConnection Ban KickUser #KEYWORD=Profiles and user ;-------------- Ptokax AddProfile RemoveProfile GetProfiles GetProfileIdx GetProfileName GetUsersByProfile ;registered user handling AddRegUser DelRegUser ;user object sName sClient sClientVersion sMode sIP sMyInfoString sTag sDescription sConnection sEmail bUserCommand bOperator bRegistered bHasTag bActive iShareSize iProfile iVersion iHubs iNormalHubs iRegHubs iOpHubs iSlots iBlimit iLlimit ;-------------- aquila ;User information commands GetUserIP GetUserShare GetUserShareNum GetUserClient GetUserClientVersion GetUserSlots GetUserHubs GetUserRights UserIsOP UserIsActive UserIsRegistered UserIsZombie ;account management GroupCreate GroupInUse GroupDelete AccountCreate AccountDelete AccountPasswd AccountPwGen ;-------------- Verlihub GetMyINFO GetUserClass GetUserHost GetUserIP ;-------------- BCDC getUser setOp findUsers isOp removeUser #KEYWORD=Events ;-------------- Ptokax Main OnExit OnTimer NewUserConnected UserDisconnected OpConnected OpDisconnected OnError SupportsArrival ChatArrival KeyArrival ValidateNickArrival PasswordArrival VersionArrival GetNickListArrival MyINFOArrival GetINFOArrival SearchArrival ToArrival ConnectToMeArrival MultiConnectToMeArrival RevConnectToMeArrival SRArrival KickArrival OpForceMoveArrival UserIPArrival UnknownArrival ;Ptokax timer SetTimer StartTimer StopTimer ;frmHub frmHub ;-------------- aquila EventLogin EventSearch EventChat EventPMOut EventPMIn EventLogout EventKick EventBan EventInfoUpdate EventSearchResult EventUpdate EventRedirect EventPreLogin EventCacheFlush EventLoad EventSave ;-------------- Verlihub Main UnLoad VH_OnNewConn VH_OnCloseConn VH_OnParsedMsgChat VH_OnParsedMsgPM VH_OnParsedMsgSearch VH_OnParsedMsgConnectToMe VH_OnParsedMsgRevConnectToMe VH_OnParsedMsgSR VH_OnParsedMsgMyINFO VH_OnParsedMsgAny VH_OnUnknownMsg VH_OnOperatorCommand VH_OnOperatorKicks VH_OnOperatorDrops VH_OnUserCommand VH_OnValidateTag VH_OnUserLogin VH_OnUserLogout VH_OnTimer VH_OnNewReg VH_OnNewBan VH_OnParsedMsgSupport VH_OnParsedMsgMyPass VH_OnParsedMsgValidateNick ;-------------- BCDC connected disconnected userConnected userMyInfo userQuit onSearch onHello onMyInfo onQuit onHubName onPrivateMessage onChatMessage onChatFromSelf UserDataIn UserDataOut OnCommandEnter OnTimer OnHubAdded OnHubRemoved OnHubAdded OnHubRemoved #KEYWORD=Settings ;-------------- Ptokax RegBot RegBot UnregBot GetUsersCount GetHubName SetHubName GetHubDescr SetHubDescr GetHubAddress GetHubIp GetHubPort GetHubUdpPort GetHubTopic SetHubTopic GetRegServer SetRegServer SetAutoRegister GetMaxUsers SetMaxUsers GetMaxLogins SetMaxLogins GetMinShare SetMinShare GetMinSlots SetMinSlots GetMaxSlots SetMaxSlots GetHubRatio GetSlotRatio SetHubSlotRatio GetMaxHubs SetMaxHubs GetCurrentShareAmount GetOnlineUsers GetOpChatName SetOpChatName GetOpChatDescription GetOpChatEmail SetOpChatData GetHubBotName SetHubBotName GetHubBotDescription GetHubBotEmail SetHubBotData Restart GetOpChat SetOpChat GetHubBot SetHubBot GetPtokaXLocation GetRedirectAddress SetRedirectAddress GetShareRedirAddr SetShareRedirAddr GetShareRedirect SetShareRedirect GetSlotsRedirAddr SetSlotsRedirAddr GetSlotsRedirect SetSlotsRedirect GetRatioRedirAddr SetRatioRedirAddr GetRatioRedirect SetRatioRedirect GetMaxHubsRedirAddr SetMaxHubsRedirAddr GetMaxHubsRedirect SetMaxHubsRedirect GetNoTagRedirAddr SetNoTagRedirAddr GetNickRuleRedirAddr SetNickRuleRedirAddr GetNickRuleRedirect SetNickRuleRedirect GetTempBanRedirect SetTempBanRedirect GetTempBanRedirAddr SetTempBanRedirAddr GetBanRedirect SetBanRedirect GetBanRedirAddr SetBanRedirAddr GetRedirectAll SetRedirectAll GetRedirectFull SetRedirectFull GetNoTagOption SetNoTagOption GetRegOnlyRedirect SetRegOnlyRedirect GetRegOnlyRedirAddr SetRegOnlyRedirAddr GetHubBotIsAlias SetHubBotIsAlias GetHubSecAliasName GetUserPassword GetUpTime isNickRegged GetUserProfile ;-------------- aquila ;hubinfo stat related info GetActualUsersTotal ;robot functions AddBot DelBot ;lua created command functions RegCommand DelCommand ;config functions SetConfig GetConfig ;-------------- Verlihub SetConfig GetConfig GetUsersCount GetNickList GetTotalShareSize AddRobot DelRobot SQLQuery SQLFetch SQLFree ParseCommand ;-------------- BCDC DC addHub createHub getListeners getHub getHubs hasHub removeHub destroy listHubs setListener getId isADC getUptime createUser gotOpList setPartial isPartial setHubName getAddress getHubName setOwnNick getOwnNick setIp getIp getNick setMsgHandled msgHandled SocketAccept ;---------------------------------- the left over group. #KEYWORD=free for own use