mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-12 15:42:49 +01:00
Undo revision
Setting back to the original modification.
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
/proc/send2irc(var/channel, var/msg)
|
||||
if(config.use_irc_bot)
|
||||
paranoid_sanitize(msg)
|
||||
ext_python("ircbot_message.py", "[config.comms_password] [config.irc_bot_host] [channel] [msg]")
|
||||
return
|
||||
/proc/send2irc(var/msg, var/admin = 0)
|
||||
if(config.use_irc_bot)
|
||||
paranoid_sanitize(msg)
|
||||
if(admin)
|
||||
msg = "ADMIN - [msg]"
|
||||
// 3rd param is unused in the bot, would spend time to fix this but I'm lazy. - Jon
|
||||
ext_python("ircbot_message.py", "[config.comms_password] [config.irc_bot_host] null [msg]")
|
||||
return
|
||||
|
||||
/proc/send2mainirc(var/msg)
|
||||
if(config.main_irc)
|
||||
send2irc(config.main_irc, msg)
|
||||
return
|
||||
send2irc(msg)
|
||||
return
|
||||
|
||||
/proc/send2adminirc(var/msg)
|
||||
var/queuedmsg = "ADMIN - [msg]"
|
||||
send2irc(config.admin_irc, queuedmsg)
|
||||
return
|
||||
send2irc(msg, 1)
|
||||
return
|
||||
|
||||
/hook/startup/proc/ircNotify()
|
||||
send2mainirc("Server starting up on [config.server? "byond://[config.server]" : "byond://[world.address]:[world.port]"]")
|
||||
return 1
|
||||
send2mainirc("Server starting up on [config.server? "byond://[config.server]" : "byond://[world.address]:[world.port]"]")
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user