Permalink
Browse files

bufsave fixes

  • Loading branch information...
1 parent 8dc285e commit 8f32375b507a048d9bf8e1b43ef4b439f67863b2 Tor Hveem committed Jun 10, 2009
Showing with 3 additions and 4 deletions.
  1. +3 −4 bufsave.py
View
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2009 by xt <tor@bash.no>
-# Based on bufsave.pl
+# Based on bufsave.pl for 0.2.x by FlashCode
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -54,11 +54,10 @@ def cstrip(text):
def bufsave_cmd(data, buffer, args):
''' Callback for /bufsave command '''
- server = w.buffer_get_string(buffer, 'localvar_server')
filename = args
-
- if not args:
+ if not filename:
+ w.command('', '/help %s' %SCRIPT_COMMAND)
return w.WEECHAT_RC_OK
if exists(filename):

0 comments on commit 8f32375

Please sign in to comment.