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.
HecKel
Voice
Posts: 23 Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal
Post
by HecKel » Thu Jan 20, 2005 1:01 pm
sometimes my egg add the correct flags, and sometimes he only add the default flags..., aswell the egg adds the user to the channel access list, and sometimes he did's this..., I can't find the problem..., there is the code:
Code: Select all
proc wellcome {by to where cat} {
putserv "NOTICE $by :$to is the $cat on $where"
putserv "NOTICE $to :Wellcome $to!"
putserv "NOTICE $to :$by adding you as $cat no $where."
pushmode $where +o $to
}
bind pub X|X .addnew add_new
proc add_new {n u h c a} {
global botnick newflags
if {[lindex $a 0] == ""} {
putserv "NOTICE $n :Command: .addnew <nickname>"
return 1
}
set newop [lindex $a 0]
if {[onchan $newop $c] == 0} {
putserv "NOTICE $n :$newop is not in $c!"
return 1
}
set exflags "+ofCX"
set newhost "$newop!*@*"
if {[validuser $newop] == 1} {
if {[lsearch [getuser $newop hosts] $newhost] == "-1"} {
putserv "NOTICE $n :$newop is not in my DB. Adding flags and hostmask."
chattr $newop |+$exflags $c
setuser $newop hosts $newhost
putserv "CHANSERV ACCESS $c ADD $newop 5"
wellcome $n $newop $c "new op"
return 1
} {
putserv "NOTICE $n :$newop is alread in my DB. Changing flags."
chattr $newop |+$exflags $c
putserv "CHANSERV ACCESS $c ADD $newop 5"
wellcome $n $newop $c new op"
return 1 }
}
if {[finduser $newhost] != "*"} {
putserv "NOTICE $n :$newop\[$newhost\] is now: [finduser $newhost]"
return 1
}
adduser $newop $newhost
if {[chattr $newop |+$exflags $c] == "*"} {
putserv "NOTICE $n :Error!"
return 1
}
wellcome $n $newop $c "new op"
save
}
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Thu Jan 20, 2005 1:15 pm
HecKel wrote: sometimes my egg add the correct flags, and sometimes he only add the default flags..., aswell the egg adds the user to the channel access list, and sometimes he did's this..., I can't find the problem..., there is the code:
This set here is not exactly secure. You are just adding users by nick?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
HecKel
Voice
Posts: 23 Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal
Post
by HecKel » Thu Jan 20, 2005 5:57 pm
yes i only add users by nick because the egg is on a private channel, and the users usualy change masks...
HecKel
Voice
Posts: 23 Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal
Post
by HecKel » Fri Jan 28, 2005 1:46 pm
anybody can help me on this question?
my egg can't add users to channel access list, the egg has access to add anyuser, but only add user to his db...
tnks, HecKel