diff options
| author | 2008-08-22 07:27:51 +0000 | |
|---|---|---|
| committer | 2008-08-22 07:27:51 +0000 | |
| commit | 17068105619db62112e5dc06dabfe38b44b941a7 (patch) | |
| tree | bfcdeaaa95cdbc994decf89f0b3971e6acadd212 /data | |
| parent | implemented feature request #171 (diff) | |
| download | KVIrc-17068105619db62112e5dc06dabfe38b44b941a7.tar.gz KVIrc-17068105619db62112e5dc06dabfe38b44b941a7.tar.bz2 KVIrc-17068105619db62112e5dc06dabfe38b44b941a7.zip | |
Removed warning when hopping part --keep'd channel (thanks to Atom)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2269 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'data')
| -rw-r--r-- | data/defscript/aliases.kvs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/defscript/aliases.kvs b/data/defscript/aliases.kvs index e94bcddc2..53b1f43b3 100644 --- a/data/defscript/aliases.kvs +++ b/data/defscript/aliases.kvs @@ -694,12 +694,13 @@ alias(hop) if(!%chan) %chan=$chan.name($active) // Retrieve channel key - %key=$chan.key($channel(%chan)) + if($channel(%chan)!=0) + %key=$chan.key($channel(%chan)) + else %key=0 // Exit channel if($window.type($channel(%chan))=="channel") - eval "part --keep %chan $option(stringPartMessage)" - + eval "part --keep %chan $option(stringPartMessage)" // Rejoin channel if(!%key) join %chan else join %chan %key |
