/[weechat]/weechat/src/plugins/scripts/python/weechat-python.c
ViewVC logotype

Diff of /weechat/src/plugins/scripts/python/weechat-python.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by flashcode, Sat Oct 15 12:34:21 2005 UTC revision 1.2 by flashcode, Sun Oct 16 15:39:20 2005 UTC
# Line 670  weechat_python_cmd (t_weechat_plugin *pl Line 670  weechat_python_cmd (t_weechat_plugin *pl
670      (void) handler_args;      (void) handler_args;
671      (void) handler_pointer;      (void) handler_pointer;
672            
673      argv = plugin->explode_string (plugin, arguments, " ", 0, &argc);      if (arguments)
674            argv = plugin->explode_string (plugin, arguments, " ", 0, &argc);
675        else
676        {
677            argv = NULL;
678            argc = 0;
679        }
680            
681      switch (argc)      switch (argc)
682      {      {
# Line 783  weechat_python_cmd (t_weechat_plugin *pl Line 789  weechat_python_cmd (t_weechat_plugin *pl
789              plugin->printf_server (plugin,              plugin->printf_server (plugin,
790                                     "Python error: wrong argument count for \"python\" command");                                     "Python error: wrong argument count for \"python\" command");
791      }      }
792      plugin->free_exploded_string (plugin, argv);      
793        if (argv)
794            plugin->free_exploded_string (plugin, argv);
795        
796      return 1;      return 1;
797  }  }
798    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26