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.

binding on $notify-newusers

Old posts that have not been replied to for several years.
Locked
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

binding on $notify-newusers

Post by YooHoo »

can someone explain how to bind upon $notify-newusers ? It works perfectly fine when the dcc cmd .adduser...
however, i run another comprehensive script (besides netbots), Stormbot, on most of my botnet, and it has both public and /msg commands to adduser. I am wondering if eggdrop has automated the process enuf to simply include the global variable $notify-newusers in a process, in order for it to save a note to $owner? My goal is to have the bot save me a note if added via dcc, msg, or pub. Thanks :mrgreen:[/b]
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you can't bind on that, there is no such bind

what you can do is modifying your script's adduser procs to notify you accordingly
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

thanks demond 8)
so, to accomplish what i want, i should include a storenote command within the adduser procedure? ya think ya could you show me an example using storenote to save a note for $permowners?
:mrgreen:
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

assuming you have several perm owners:

Code: Select all

foreach owner [split [regsub -all {[ ,]{1,}} $::owner " "]] {
  storenote newuser $owner "$newuser added by $hand" -1
}
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

what you also could do is unbind +user thing and make one of your own.. calling upon an event or something..
XplaiN but think of me as stupid
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

demond wrote:assuming you have several perm owners:

Code: Select all

foreach owner [split [regsub -all {[ ,]{1,}} $::owner " "]] {
  storenote newuser $owner "$newuser added by $hand" -1
}
You assume correctly...thanks! :wink:
Locked