git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9e6dee0
)
videosite-weechat: get rid of //=
author
Ralf Ertzinger
<ralf@skytale.net>
Tue, 30 Apr 2013 14:03:25 +0000
(16:03 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Tue, 30 Apr 2013 14:03:25 +0000
(16:03 +0200)
videosite-weechat.pl
patch
|
blob
|
history
diff --git
a/videosite-weechat.pl
b/videosite-weechat.pl
index
389a1fb
..
fdcc5d5
100644
(file)
--- a/
videosite-weechat.pl
+++ b/
videosite-weechat.pl
@@
-65,8
+65,8
@@
sub config_del {
sub colorpair {
my ($fg, $bg) = @_;
sub colorpair {
my ($fg, $bg) = @_;
- $fg
//=
'default';
- $bg
//=
'default';
+ $fg
= defined($fg)?$fg:
'default';
+ $bg
= defined($bg)?$bg:
'default';
return weechat::color($fg . ",", $bg);
}
return weechat::color($fg . ",", $bg);
}