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.

notice return 0

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

notice return 0

Post by Ofloo »

How do i force return 0 on server notice ?? i know eggdrop won't read server notices it ignores em, and so u need to force return 0 right well i have no clue on how i should even start on this part could someone give me an example or point me in the right direction ..?
XplaiN but think of me as stupid
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind raw - NOTICE server:notice

proc server:notice {from keyword text} {
  return 0
}
Once the game is over, the king and the pawn go back in the same box.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

Code: Select all

if {[string match *.* $from]} { server notice } { not }
 
photon?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

spock u confused me xplain
bind raw - NOTICE server:notice

proc server:notice {from keyword text} {
return 0
}
how do i use it like this ??

Code: Select all

bind raw - NOTICE server:notice 

proc server:notice {from keyword text} { 
  return 0 
  #...... script .......
}
XplaiN but think of me as stupid
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

Ofloo wrote:spock u confused me xplain
bind raw - NOTICE server:notice

proc server:notice {from keyword text} {
return 0
}
how do i use it like this ??

Code: Select all

bind raw - NOTICE server:notice 

proc server:notice {from keyword text} { 
  return 0 
  #...... script .......
}
No, that'd quit the proc before doing the rest. Do your stuff, THEN return 0.
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

just bind the proc and on the end return 0 ..?
XplaiN but think of me as stupid
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

Tnx got it ;)
XplaiN but think of me as stupid
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

the code i posted would check whether or not the notice is from a server (nicknames wont have a dot in them)
photon?
Locked