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.
-
m
m4dh4x0r
Post
by m4dh4x0r »
Code: Select all
bind pub n .addmaster sb_addmaster
proc sb_addmaster { nick uhost hand chan text } {
adduser [lindex $text 0]
chattr [lindex $text 0] +mo
putserv "privmsg $nick :You have added:[lindex $text 0] To the master list."
putserv "privmsg [lindex $text 0] :You have been added to my master list."
}
bind pub - .finduser sb_finduser
proc sb_finduser { nick uhost hand chan text } {
if { validuser [lindex $text 1] = 1 } {
set finduser [lindex $text 1]
set botfl getuser $finduser botfl
set handle getuser $finduser handle
putserv "privmsg $nick :(Info For [$finduser])"
putserv "privmsg $nick :Flags: $botfl"
putserv "privmsg $nick :Handle: $handle"
}
else {
putserv "privmsg $nick :Could not find user ([$finduser])"
}
}
It isnt adding people and messaging them.. and then the find user isnt working either..
thanks
-
Darkj
- Halfop
- Posts: 86
- Joined: Sun Jul 06, 2003 9:58 pm
Post
by Darkj »
Code: Select all
bind pub n .addmaster sb_addmaster
proc sb_addmaster { nick uhost hand chan text } {
set newmaster [lindex [split $text] 0]
adduser $newmaster
chattr $newmaster +mo
putserv "privmsg $nick :You have added\:$newmaster To the master list."
putserv "privmsg $newmaster :You have been added to my master list."
}
bind pub - .finduser sb_finduser
proc sb_finduser { nick uhost hand chan text } {
if { validuser [lindex [split $text] 0] = 1 } {
set finduser [lindex [split $text] 0]
set botfl [getuser $finduser botfl]
set handle [getuser $finduser handle]
putserv "privmsg $nick :(Info For \[$finduser\])"
putserv "privmsg $nick :Flags\: $botfl"
putserv "privmsg $nick :Handle\: $handle"
}
else {
putserv "privmsg $nick :Could not find user (\[$finduser\])"
}
}
Think that should work, untested though, but a start.
-
m
m4dh4x0r
Post
by m4dh4x0r »
Find user doesnt seem to be working
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
instead of
Code: Select all
if { validuser [lindex [split $text] 0] = 1 } {
use
Code: Select all
if {[validuser [lindex [split $text] 0]]} {
and the command is
.finduser <user>