xxxx
This commit is contained in:
parent
a6cf979c8a
commit
54b8f8c846
|
@ -6,7 +6,7 @@
|
|||
###########################################################################################
|
||||
if SERVICES_MATRIX:
|
||||
global matrixbot
|
||||
###########################################################################################
|
||||
###########################################################################################
|
||||
global bus, dims, ircbot
|
||||
from plugins.tool_dims_plugin import dims
|
||||
from plugins.tool_guds_plugin import guds
|
||||
|
@ -81,9 +81,10 @@ class BUS:
|
|||
#######################################################################################
|
||||
async def input(self,network_chanroom_user_src,user_src,data,verbose_bridge):
|
||||
prefix_src=""; maple_dispatch=False
|
||||
#if network_chanroom_user_src.startswith('👻'):
|
||||
# network_chanroom_user_src=network_chanroom_user_src[1:]
|
||||
# maple_dispatch=True
|
||||
network_chanroom_dest=network_chanroom_user_src
|
||||
if network_chanroom_user_src.startswith('👻'):
|
||||
network_chanroom_user_src=network_chanroom_user_src[1:]
|
||||
maple_dispatch=True
|
||||
if network_chanroom_user_src.startswith('!'): prefix_src="" #"!m"
|
||||
elif network_chanroom_user_src.startswith('#'): prefix_src="" #"#i"
|
||||
elif network_chanroom_user_src.startswith('$'): prefix_src="" #"$t"
|
||||
|
@ -141,7 +142,7 @@ class BUS:
|
|||
msg=regex.sub("",data)
|
||||
d_matrix_msg(network_chanroom_dest,msg)
|
||||
############################################################### IRC
|
||||
elif network_chanroom_dest.startswith('#'):
|
||||
if network_chanroom_dest.startswith('#'):
|
||||
if verbose_bridge:
|
||||
_data=regex.sub("",_data)
|
||||
if maple_dispatch:
|
||||
|
@ -194,7 +195,7 @@ class BUS:
|
|||
msg=regex.sub("",data)
|
||||
d_matrix_msg(network_chanroom_dest,msg)
|
||||
################################################################### IRC
|
||||
elif network_chanroom_dest.startswith('#'):
|
||||
if network_chanroom_dest.startswith('#'):
|
||||
if verbose_bridge:
|
||||
data=regex.sub("",data)
|
||||
if maple_dispatch:
|
||||
|
|
Loading…
Reference in New Issue