Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc pub_do_addfriend {nick host hand chan arg} {
- foreach {who} [split $arg] {
- if {[onchan $who $chan] && ([matchattr $who -f $chan] || ![matchattr $who +f $chan])} {
- chattr $who +f $chan
- putquick "privmsg $chan :$who marked as friend."
- } elseif [matchattr $who +f $chan] {
- putquick "privmsg $chan :$who is already my friend, dummy."
- } else {
- putquick "privmsg $chan :I don't see $who :("
- }
- }
- }
Add Comment
Please, Sign In to add comment