mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Adding more ACL-options and userGroupOptions, add language item
This commit is contained in:
parent
6de9a985bc
commit
c78bb37f92
@ -29,6 +29,14 @@
|
||||
<objecttype>be.bastelstu.wcf.chat.room</objecttype>
|
||||
<categoryname>mod</categoryname>
|
||||
</option>
|
||||
<option name="mod.canMute">
|
||||
<objecttype>be.bastelstu.wcf.chat.room</objecttype>
|
||||
<categoryname>mod</categoryname>
|
||||
</option>
|
||||
<option name="mod.canBan">
|
||||
<objecttype>be.bastelstu.wcf.chat.room</objecttype>
|
||||
<categoryname>mod</categoryname>
|
||||
</option>
|
||||
</options>
|
||||
</import>
|
||||
</data>
|
@ -480,14 +480,16 @@ window.console ?=
|
||||
# Desktop Notifications
|
||||
if typeof window.webkitNotifications isnt 'undefined'
|
||||
if window.webkitNotifications.checkPermission() is 0
|
||||
title = WCF.Language.get 'wcf.chat.newMessages'
|
||||
title = WCF.Language.get 'wcf.chat.notify.title'
|
||||
icon = WCF.Icon.get 'be.bastelstu.wcf.chat.chat'
|
||||
content = message.username + message.separator + (if message.separator is ' ' then '' else ' ') + message.message
|
||||
notification = window.webkitNotifications.createNotification icon, title, content
|
||||
notification.show()
|
||||
setTimeout(() ->
|
||||
|
||||
# Hide notification after 10 seconds
|
||||
setTimeout () ->
|
||||
notification.cancel()
|
||||
, 5e3)
|
||||
, 10e3
|
||||
###
|
||||
# Refreshes the room-list.
|
||||
###
|
||||
|
@ -76,6 +76,7 @@ Hinweis: Setzen Sie diese Einstellung nur, wenn Sie wissen, was sie bewirkt. Die
|
||||
<item name="wcf.chat.submit.default"><![CDATA[Zum Senden Enter drücken]]></item>
|
||||
<item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item>
|
||||
<item name="wcf.chat.notify"><![CDATA[Benachrichtigen]]></item>
|
||||
<item name="wcf.chat.notify.title"><![CDATA[Neue Nachrichten]]></item>
|
||||
<item name="wcf.chat.smilies"><![CDATA[Smilies]]></item>
|
||||
<item name="wcf.chat.clear"><![CDATA[Chat leeren]]></item>
|
||||
<item name="wcf.chat.mark"><![CDATA[Markieren]]></item>
|
||||
|
@ -144,7 +144,7 @@
|
||||
'wcf.chat.kick': '{lang}wcf.chat.kick{/lang}',
|
||||
'wcf.chat.ban': '{lang}wcf.chat.ban{/lang}',
|
||||
'wcf.chat.profile': '{lang}wcf.chat.profile{/lang}',
|
||||
'wcf.chat.newMessages': '{lang}wcf.chat.newMessages{/lang}'
|
||||
'wcf.chat.notify.title': '{lang}wcf.chat.notify.title{/lang}'
|
||||
});
|
||||
WCF.Icon.addObject({
|
||||
'be.bastelstu.wcf.chat.chat': '{icon size='L'}chat{/icon}'
|
||||
|
@ -50,6 +50,30 @@
|
||||
<defaultvalue>0</defaultvalue>
|
||||
<admindefaultvalue>1</admindefaultvalue>
|
||||
</option>
|
||||
<option name="mod.chat.canMute">
|
||||
<categoryname>mod.chat</categoryname>
|
||||
<optiontype>boolean</optiontype>
|
||||
<defaultvalue>0</defaultvalue>
|
||||
<admindefaultvalue>1</admindefaultvalue>
|
||||
</option>
|
||||
<option name="mod.chat.canMuteGlobally">
|
||||
<categoryname>mod.chat</categoryname>
|
||||
<optiontype>boolean</optiontype>
|
||||
<defaultvalue>0</defaultvalue>
|
||||
<admindefaultvalue>1</admindefaultvalue>
|
||||
</option>
|
||||
<option name="mod.chat.canBan">
|
||||
<categoryname>mod.chat</categoryname>
|
||||
<optiontype>boolean</optiontype>
|
||||
<defaultvalue>0</defaultvalue>
|
||||
<admindefaultvalue>1</admindefaultvalue>
|
||||
</option>
|
||||
<option name="mod.chat.canBanGlobally">
|
||||
<categoryname>mod.chat</categoryname>
|
||||
<optiontype>boolean</optiontype>
|
||||
<defaultvalue>0</defaultvalue>
|
||||
<admindefaultvalue>1</admindefaultvalue>
|
||||
</option>
|
||||
<option name="admin.content.chat.canAddRoom">
|
||||
<categoryname>admin.content.chat</categoryname>
|
||||
<optiontype>boolean</optiontype>
|
||||
|
Loading…
Reference in New Issue
Block a user