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.

remove and get all channels from user

Old posts that have not been replied to for several years.
Locked
H
HecKel
Voice
Posts: 23
Joined: Wed Jan 19, 2005 3:50 pm
Location: Lisbon, Portugal

remove and get all channels from user

Post by HecKel »

I want to get all channels from an user and remove them , but don't delete the user, only remove channels from this particular user and print the deleted channels.

tnks HecKel
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

channels are not binded to users .. only flags are..

but i think your looking for something like this havn't tested it tho

Code: Select all

proc delflags {user} {
  foreach {x} [channels] {
    chattr $user -|-[lindex [split [chattr $user - $x] \x7C] 1] $x 
  }
}
XplaiN but think of me as stupid
Locked