This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
eiSi
- Halfop
- Posts: 70
- Joined: Thu Mar 07, 2002 8:00 pm
Post
by eiSi »
hi there!
I think everybody of you knows Stormbot.
so, I wanted to enlarge it a bit.
Code: Select all
### call_showbm
proc call_showbm {nick misc1} {
global bnick
set misc1 [string tolower $misc1]
set bm [getuser $bnick XTRA "blackmarks-$misc1"]
notice $nick "$misc1 's blackmarks are at: $bm"
}
if I try it:
|05:37| »» [ @tuxX] m showbm #bot-hub
|05:37| »» [ Notice] [m00) ['s blackmarks are at: 0]
so, whats wrong with my code?
thanks for help!
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
There is nothign wrong with it.
The fact it shows the 0 means somthing is being returned.
-
eiSi
- Halfop
- Posts: 70
- Joined: Thu Mar 07, 2002 8:00 pm
Post
by eiSi »
ok, thanks.
I just solved it, it seems as if "misc1" is a reserved variable within stormbot. with a different one all works fine
