Changed the location of the weechat return so that it returns within the entire if condition