diff options
| author | 2016-06-16 08:18:07 +0100 | |
|---|---|---|
| committer | 2016-06-18 14:29:29 +0100 | |
| commit | 4fea8ba5de520d529e4ef02b16f7310701b4daaf (patch) | |
| tree | ba85b2e004c20e9f7b965af2589b210a7a3447ca /data | |
| parent | popups: coding style to match source Allman style (diff) | |
| download | KVIrc-4fea8ba5de520d529e4ef02b16f7310701b4daaf.tar.gz KVIrc-4fea8ba5de520d529e4ef02b16f7310701b4daaf.tar.bz2 KVIrc-4fea8ba5de520d529e4ef02b16f7310701b4daaf.zip | |
events: coding style to match source Allman style
Diffstat (limited to 'data')
| -rw-r--r-- | data/defscript/events.kvs | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/data/defscript/events.kvs b/data/defscript/events.kvs index 62964de95..c28950913 100644 --- a/data/defscript/events.kvs +++ b/data/defscript/events.kvs @@ -1,4 +1,10 @@ # Default events file +# +# KVIrc has a lot of events that merely ask for a popup to be shown :) +# Notice: when adding new events here use no spaces in the event name +# +# Coding style/curly brackets: Allman style + event(OnServerLinkPopupRequest,default) { @@ -22,45 +28,53 @@ event(OnConsolePopupRequest,default) event(OnChannelLinkPopupRequest,default) { - if($0 != "") popup.show channelpopup $0; + if($0 != "") + popup.show channelpopup $0; } event(OnQueryPopupRequest,default) { - if($target) popup.show querytextview $target; + if($target) + popup.show querytextview $target; } event(OnQueryNickPopupRequest,default) { - if($0 != "") popup.show querytextview $0; + if($0 != "") + popup.show querytextview $0; } event(OnQueryFileDropped,default) { - if($0 != "") dcc.send $target $0; + if($0 != "") + dcc.send $target $0; } event(OnNickLinkDefaultActionRequest,default) { - if($0 != "") whois $0; + if($0 != "") + whois $0; } event(OnNickLinkPopupRequest,default) { - if($0 != "") popup.show defaulttextview $0; + if($0 != "") + popup.show defaulttextview $0; } event(OnNotifyListDefaultActionRequest,default) { if($0 != "") { - query $0; whois $0 $0; + query $0; + whois $0 $0; } } event(OnNotifyListPopupRequest,default) { - if($0 != "") popup.show defaulttextview $0; + if($0 != "") + popup.show defaulttextview $0; }; event(OnWindowPopupRequest,default) @@ -70,7 +84,7 @@ event(OnWindowPopupRequest,default) event(OnChannelWindowCreated,default) { - button(w,Logging,119,$tr("Logging","defscript")) + button(w,Logging,$icon("log"),$tr("Logging","defscript")) { popup.show -p=$0,$1 logging; } @@ -78,7 +92,7 @@ event(OnChannelWindowCreated,default) event(OnQueryWindowCreated,default) { - button(w,Logging,119,$tr("Logging","defscript")) + button(w,Logging,$icon("log"),$tr("Logging","defscript")) { popup.show -p=$0,$1 logging; } @@ -86,7 +100,7 @@ event(OnQueryWindowCreated,default) event(OnDCCChatWindowCreated,default) { - button(w,Logging,119,$tr("Logging","defscript")) + button(w,Logging,$icon("log"),$tr("Logging","defscript")) { popup.show -p=$0,$1 logging; } @@ -109,7 +123,8 @@ event(OnChannelNickPopupRequest,default) event(OnChannelNickDefaultActionRequest,default) { - if(!$isEmpty($0)) query $0; + if(!$isEmpty($0)) + query $0; } event(OnURLLinkClick,default) |
