diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-17 21:23:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-17 21:23:50 -0300 |
commit | 7db456aee207d13acb4e02c507b9de47ff69ec3e (patch) | |
tree | 47f6d605c7d79b043269139615ce9095e59bb87f | |
parent | 9bd6a5501475b74784ccf60bbb493030a5f02f0f (diff) | |
download | client-7db456aee207d13acb4e02c507b9de47ff69ec3e.tar.gz client-7db456aee207d13acb4e02c507b9de47ff69ec3e.tar.bz2 client-7db456aee207d13acb4e02c507b9de47ff69ec3e.tar.xz client-7db456aee207d13acb4e02c507b9de47ff69ec3e.zip |
Add support for server notices
-rw-r--r-- | game/04_init.rpy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/game/04_init.rpy b/game/04_init.rpy index 99359f6..69d9e34 100644 --- a/game/04_init.rpy +++ b/game/04_init.rpy @@ -25,6 +25,15 @@ init python: global tr_load, tr_val, tr_busy stdout("Server : " + str(message)) + # Wait wait, it might have been a SERVNOTICE! + try: + if (message.split(':')[0] == "NOTICE"): + renpy.call_screen("msgbox", + "{b}SERVER NOTICE{b}\n\n%s" % str(":".join(command.split(':')[1:]))) + return + except: + pass + # Inform whatever is waiting for us that a reply was obtained tr_load=True tr_val=str(message) |