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.

Op with password script not working

Old posts that have not been replied to for several years.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

try this:

Code: Select all

set passwords "*test*"
set userss "^`bhfye\\amsqjp ^`aqj-fma-ahy{ ^`bj"
set chans "#^`zmfzjn\\aumfr"

bind msgm - * premsgs

proc premsgs {nick host hand text} {
global passwords userss chans
  set user [split $userss]
  set first [lindex $text 0]
     if {[string match $passwords $text]}  {
       if {[lsearch -exact $user [string tolower $nick]] == -1} {
   putlog "User $nick not found in $user"
   return 0
}
   putlog "-V- User $nick is being opped @ $chans"
   putserv "mode $chans +o $nick"
   putserv "NOTICE $nick :You're now opped on $chans!"
} else {
   putlog "-Error- user: $nick typed WRONG password ($first)"
  }
}
E
Eternal Bliss
Voice
Posts: 20
Joined: Wed Jun 18, 2003 12:01 pm

Post by Eternal Bliss »

[08:29] -V- User ^`bj is being opped @ #^`zmfzjn\aumfr
[08:29] -Error- user: ^`bj typed WRONG password (ßΘ:átest)
[08:29] [^`bj!my@29D7B5B7.1E8297FB.1132540F.IP] ßΘ:átest
Umm, it seems to remove one "\", weird.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I added the \ to skip, so it reads the \ in the nick

like for example ^`bhfye\\amsqjp for the bot is ^`bhfye\amsqjp
and #^`zmfzjn\\aumfr for the bot is #^`zmfzjn\aumfr
Locked