if (%pager == on) { notice $nick Page Recorded | write logs.txt < $+ $clock $+ > $nick PAGED me w/ the message : $2- }
else { notice $nick my pager is not on right now }
}
ctcp 1:finger:/.ctcpreply $nick FINGER $logo Created by [-Vega-] and Blue_Max | halt
ctcp 1:version:/.ctcpreply $nick VERSION $logo Created by [-Vega-] and Blue_Max | halt
ctcp 2:vote:if (%voteron == yes) { .notice $nick you already voted! | halt }
ctcp 1:vote:{
if (%voteron == yes) {
if (%vote-type == y) {
.auser 2 $nick
if (($2 != yes) && ($2 != no) && ($2 != results)) { .notice $nick must vote either yes or no | .ruser $nick | halt }
set %vote-people $remove(%vote-people,$nick)
if ($2 == yes) { inc %vote-yes-num | inc %vote-total | set %vote-yes-people %vote-yes-people $nick | .notice $nick Your vote of Yes has been logged | halt }
if ($2 == no) { inc %vote-no-num | inc %vote-total | set %vote-no-people %vote-no-people $nick | .notice $nick Your vote of No has been logged | halt }
if ($2 == results) {
.notice $nick Results on topic : %vote-topic
if (%vote-yes-num == $null) { .notice $nick Number of Yes : 0 | goto no } | .notice $nick Number of Yes : %vote-yes-num < $+ $percent(%vote-yes-num,%vote-total) $+ $chr(37) $+ > Voted by : %vote-yes-people
:no | if (%vote-no-num == $null) { .notice $nick Number of No : 0 | goto next } | .notice $nick Number of No : %vote-no-num < $+ $percent(%vote-no-num,%vote-total) $+ $chr(37) $+ > Voted by : %vote-no-people
:next | .notice $nick Total : %vote-total
.notice $nick The following people did Not vote : %vote-people
halt
}
}
if (%vote-type == r) {
if (($2 != 1) && ($2 != 2) && ($2 != 3) && ($2 != results)) { .notice $nick must vote either 1, 2, or 3. | halt }
set %vote-people $remove(%vote-people,$nick)
if ($2 == 1) { inc %vote-1-num | inc %vote-total | set %vote-1-people %vote-1-people $nick | .notice $nick Your vote of 1 has been logged | halt }
if ($2 == 2) { inc %vote-2-num | inc %vote-total | set %vote-2-people %vote-2-people $nick | .notice $nick Your vote of 2 has been logged | halt }
if ($2 == 3) { inc %vote-3-num | inc %vote-total | set %vote-3-people %vote-3-people $nick | .notice $nick Your vote of 3 has been logged | halt }
if ($2 == results) {
.notice $nick Results on topic : %vote-topic
if (%vote-1-num == $null) { .notice $nick Number of votes on #1 : 0 | goto 2 } | .notice $nick Number of votes on #1 : %vote-1-num < $+ $percent(%vote-1-num,%vote-total) $+ $chr(37) $+ > Voted by : %vote-1-people
:2 | if (%vote-2-num == $null) { .notice $nick Number of votes on #2 : 0 | goto 3 } | .notice $nick Number of votes on #2 : %vote-2-num < $+ $percent(%vote-2-num,%vote-total) $+ $chr(37) $+ > Voted by : %vote-2-people
:3 | if (%vote-3-num == $null) { .notice $nick Number of votes on #3 : 0 | goto next } | .notice $nick Number of votes on #3 : %vote-3-num < $+ $percent(%vote-3-num,%vote-total) $+ $chr(37) $+ > Voted by : %vote-3-people
:next | .notice $nick Total : %vote-total
.notice $nick The following people did Not vote : %vote-people
halt
}
}
}
}
ctcp 1:XDCC:{
if ($2 == $null) { .notice $nick You must specify a pack number | halt }
if (%xdcc- [ $+ [ $2 ] ] == $null) { .notice $nick Pack does not exist | halt }