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.

hiding private messages to bot in partyline

Old posts that have not been replied to for several years.
Locked
A
Aboltuss

hiding private messages to bot in partyline

Post by Aboltuss »

hello. I use script with own userfile and identify system (this is game script), and it use command like

Code: Select all

/msg bot !identify pass
But, i have one problem - this pass can be viewed in partyline (like this:

Code: Select all

[02:36] [XAPOH!~pycbocmok@81.198.55.1] !identify password
. Until my eggdrop have only one user (me), this is not problem, but, i plan (in future) add some partyline members (game OPs). How i can hide this messages in partyline?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

this used to be a major concern of mine, until I saw the light 8) , and installed netbots.tcl. The nb_castfilter variable took care of this lil problem perfectly :mrgreen:
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

it most likely happen because you have a (unneded) return 1 at the end of your proc.
A
Aboltuss

Post by Aboltuss »

gb wrote:it most likely happen because you have a (unneded) return 1 at the end of your proc.
and how i can fix it?
in this code i change command "return" to "return 0":

Code: Select all

proc maf:identify {n uh h t} {
	global mafs mafmsg 
	if {[onchan $n $mafs(curchannel)]==0} {return 0}
	set id [makeid $n]
	if {[maf:isidentify $id]==1} {
			maf:msg $n "Nick5 $n already identified"
			return 0}
	if {[maf:isregister $id]==0} { 
		maf:msg $n "Nick $n unregistered!"
			return 0
		}
	if {[maf:checkpass $id [lindex $t 1]]==0} {
		maf:msg $n " sorry, password incorrect"
		return 0
		}
	if {[maf:checkaddress $id $uh]==0} {
		maf:msg $n "userhost incorrect"
		return 0
		}
	putlog "[maf:getinfo ident $id] $id"
	maf:setinfo ident $id 1
	putlog "[maf:getinfo ident $id]"
	maf:setinfo identtime $id [clock seconds]
	maf:msg $n "nick $n sucefully identified!"
	maf:returnplayer $id
	if {(([maf:isnickplayer $id]==0)||($mafs(isgame)==0))&&([maf:getlevel $id]>0)} {
		
		}
return 0	
	}
But command !identify still echoed in partyline :(
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

what kind of bind is triggering this proc?
Have you ever read "The Manual"?
A
Aboltuss

Post by Aboltuss »

user wrote:what kind of bind is triggering this proc?

Code: Select all

bind msgm - "!identify*" 		 	 maf:identify
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

change it to 'bind msg - !identify maf:identify' and change '[lindex $t 1]' to just '$t'
Have you ever read "The Manual"?
A
Aboltuss

Post by Aboltuss »

user wrote:change it to 'bind msg - !identify maf:identify' and change '[lindex $t 1]' to just '$t'
this work perfectly, big thanks. But, i have not one procedure (!setpass, !setnickpass, !register - too), and this procedures calls 2 times: after

Code: Select all

bind msg - !register maf:register
it calls, at first, with text "!register pass", and then with text "pass". I solve this problem by insert this string:

Code: Select all

if {[lindex "$t" 0]=="!register"} {return 0}
, but, if somebody have other idea, i want to hear it :)
Locked