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.

topic change

Old posts that have not been replied to for several years.
Locked
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

topic change

Post by LorT »

hi, i have this script

Code: Select all

set topicchan "#velug"

bind topc - * topicchange

proc topicchange {nick uhost handle channel topic} {
   global botnick topicchan
   set channel [string tolower $channel]
   if {($nick!=$botnick)&&($channel==$topicchan)} {
   topicmanager
   }
  }

proc topicmanager {} {
   global topicchan
   set topic [topic $topicchan]
   putserv "TOPIC $topicchan :\002www.linux.org.ve \002\0038|\003\00312|\003\0035|\003 $topic"
   }

it work fine, but there is some way that says who was the one that change the topic?
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

Post by LorT »

Code: Select all

set topicchan "#velug"

bind topc - * topicchange

proc topicchange {nick uhost handle channel topic} {
   global botnick topicchan
   set channel [string tolower $channel]
   if {($nick!=$botnick)&&($channel==$topicchan)} {
   set topic [topic $topicchan]
putserv"TOPIC$topicchan:\002www.linux.org.ve\002\0038|\003\00312|\003\0035|\003 $topic by $nick"
   }
  }
 
:D
Locked