Id: 2487; Nick: Jqson; Timestamp: 2007-12-09 08:53:50; Pasted as: mIRC
Description: basis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on $*:text:/^\*/:#:{ 
  var %cmd = $mid($1,2)
  If %cmd == help {
    timer 1 0 notice $nick Help list
    timer2 1 1 notice $nick topic cmd: *topic <text> (This will change the topic and save it)
    timer3 1 2 notice $nick refresh cmd: *refresh (This will load the topic)
    timer4 1 3 notice $nick remove cmd: *remove (This will remove the saved topic)
  }
  elseif %cmd == topic {
    remove topic $+ $chan $+ .txt
    write topic $+ $chan $+ .txt $2-
    topic $chan $2-
    timer 1 1 notice $nick topic saved.
    timer2 1 2 notice $nick to reset the topic, use *refresh
  } 
  elseif %cmd == refresh { 
    topic $chan $read(topic $+ $chan $+ .txt))
    notice $nick topic from channel $chan resetted.
  } 
  elseif %cmd == remove {
    remove topic $+ $chan $+ .txt
    notice $nick database: removed $chan $+ 's topic
    topic $chan Warning: Topic from $chan has been removed.. To save it again, Use *topic <text>
  }
}
 
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)
Nothing to see here.