Permalink
Browse files

Fix matchattr for shared bots. Fixes #558

Found by: maimizuno
Patch by: Cizzle

Fixes checking notes from shared bots.
  • Loading branch information...
Cizzle authored and vanosg committed Aug 27, 2018
1 parent eed5d25 commit 8d2941ff1d39172888ecf81f9f06205353035778
Showing with 4 additions and 2 deletions.
  1. +4 −2 scripts/notes2.tcl
View
@@ -1,5 +1,5 @@
#
# notes2.tcl - v2.1.1 - released by MHT <mht@mygale.org>
# notes2.tcl - v2.1.2 - released by MHT <mht@mygale.org>
# - a bind apart script from #TSF
# - for eggdrop 1.3.15+
#
@@ -28,6 +28,8 @@
# 2.1.1 - fixed a couple of small bugs pertaining to $nick being used instead of
# $botnet-nick (found by takeda, fixed by guppy)
#
# 2.1.2 - fix matchattr for shared bots (found by maimizuno, fixed by Cizzle)
#
####
# Check your notes on every shared bot of the hub.
#
@@ -129,7 +131,7 @@ proc n2_noteserase {bot handle idx numlist} {
########
proc *bot:notes2 {handle idx arg} {
if {(![matchattr $handle s])} {
if {(![matchattr $handle ||s])} {
return
}
set nick [lindex $arg 0]

0 comments on commit 8d2941f

Please sign in to comment.