mirror of
https://github.com/znc/znc.git
synced 2026-08-11 03:12:50 +02:00
Update modtcl -> adding GetServerName function and network varia… (#1658)
Update modtcl -> adding GetServerName function and network variable with network name value. Modification to have the variable ::network such as an eggdrop. Example usage: <MalaGaM> return $network <*modtcl> artis <MalaGaM> return $::network <*modtcl> artis <MalaGaM> return [GetServerName] <*modtcl> artis
This commit is contained in:
committed by
Alexey Sokolov
parent
09a514ba02
commit
d7c5eecfe5
@@ -34,6 +34,7 @@ set ::botnet-nick ZNC_[GetUsername]
|
||||
set ::botnick [GetCurNick]
|
||||
set ::server [GetServer]
|
||||
set ::server-online [expr [GetServerOnline] / 1000]
|
||||
set ::network [GetNetworkName]
|
||||
|
||||
# add some eggdrop style procs
|
||||
proc putlog message {PutModule $message}
|
||||
|
||||
Reference in New Issue
Block a user