Skip to content

Commit

Permalink
Fix /load command
Browse files Browse the repository at this point in the history
  • Loading branch information
DasBrain committed May 17, 2021
1 parent 6d148e7 commit 5cb13d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c/tcl/init.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ proc ::hexchat::command_source {words words_eol} {
if {[lindex $words_eol 2] eq {}} {
return $::hexchat::EAT_NONE
}
set file [lindex $word 2]
set file [lindex $words 2]
if {[string match *.tcl $file] || [string match *.tm $file]} {
if {![file exists $file]} {
set file [file join [::hexchat::getinfo configdir] addons $file]
Expand Down
2 changes: 1 addition & 1 deletion c/tcl/tclplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static const char init_tcl[] = {
" if {[lindex $words_eol 2] eq {}} {\n"
" return $::hexchat::EAT_NONE\n"
" }\n"
" set file [lindex $word 2]\n"
" set file [lindex $words 2]\n"
" if {[string match *.tcl $file] || [string match *.tm $file]} {\n"
" if {![file exists $file]} {\n"
" set file [file join [::hexchat::getinfo configdir] addons $file]\n"
Expand Down

0 comments on commit 5cb13d4

Please sign in to comment.