Guest User

Untitled

a guest
Oct 22nd, 2017
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.48 KB | None | 0 0
  1. #================================================================ #
  2. # Version: 3.0 Public Commands TCL #
  3. #================================================================ #
  4. ####################YOU MUST EDIT THIS ###############################
  5. #set password for nick identification if you are changing nick to registered nick and it has the same password as the botnick
  6. set password ""
  7.  
  8. #Commands
  9.  
  10. bind pub o .op pub_do_op
  11. bind pub o .deop pub_do_deop
  12. bind pub o .voice pub_do_voice
  13. bind pub o .devoice pub_do_devoice
  14. bind pub o .topic pub_do_topic
  15. bind pub o .perm pub_do_perm
  16. bind pub o .kick pub_do_kick
  17. bind pub o .unban pub_do_unban
  18. bind pub o .unperm pub_do_unperm
  19. bind pub o .bans pub_do_bans
  20. bind pub m .mode pub_do_mode
  21. bind pub m .away pub_do_away
  22. bind pub m .back pub_do_back
  23. bind pub o .bot pub_do_bot
  24. bind pub m .rehash pub_do_rehash
  25. bind pub m .restart pub_do_restart
  26. bind pub m .jump pub_do_jump
  27. bind pub m .save pub_do_save
  28. bind pub m .ban ban:pub
  29. bind pub m .kban kban:pub
  30. bind pub m "!chattr" chattr:pub
  31. bind pub m .act pub:act
  32. bind pub m .say pub:say
  33. bind pub m .global pub:global
  34. bind pub m .access pub_access
  35. bind pub m .info pub_info
  36.  
  37. #code
  38. bind pub m .identify do_identify
  39.  
  40. #----------------------------------------------------------------
  41. proc pub_do_bot {nick host hand channel text} {
  42. puthelp "PRIVMSG $nick :2Commands On This Bot"
  43. puthelp "PRIVMSG $nick :.op <nick> - Ops the nick on a current channel."
  44. puthelp "PRIVMSG $nick :.deop <nick> - Deops the nick on the current channel."
  45. puthelp "PRIVMSG $nick :.voice <nick> - Voices the nick on the current channel."
  46. puthelp "PRIVMSG $nick :.devoice <nick> - Devoices the nick on the current channel."
  47. puthelp "PRIVMSG $nick :.topic <what you like> - Sets the topic in the channel it's typed."
  48. puthelp "PRIVMSG $nick :.perm <nick> <reason> - Permanently bans the nick you specify."
  49. puthelp "PRIVMSG $nick :.kick <nick> <reason> - Kicks the nick."
  50. puthelp "PRIVMSG $nick :.unban <host> - Unbans the nick who is banned."
  51. puthelp "PRIVMSG $nick :.unperm <host> - Unbanns the user from the Permanent list."
  52. puthelp "PRIVMSG $nick :.bans - Lists the current bans on the channel."
  53. puthelp "PRIVMSG $nick :.away <msg> - Set the bot away with a message."
  54. puthelp "PRIVMSG $nick :.back - Sets the bot back."
  55. puthelp "PRIVMSG $nick :.bot - Brings up this menu. more commands to go.such as2.jump .restart .rehash .save .ban .kban .act .say .global .join .part .chattr .adduser .botnick .uptime to avoid get flooding on Pvt its restircted"
  56. puthelp "PRIVMSG $nick :2End of bot commands."
  57. return
  58. }
  59.  
  60. #----------------------------------------------------------------
  61. #Make the bot op someone
  62. proc pub_do_op {nick host handle channel testes} {
  63. set who [lindex $testes 0]
  64. if {$who == ""} {
  65. if {![botisop $channel]} {
  66. putserv "PRIVMSG $channel :I'm not op'd. I need to be op'd to do that."
  67. return 1
  68. }
  69. if {[isop $channel]} {
  70. putserv "PRIVMSG $channel :YOU are ALREADY op'd in $channel you dumbass."
  71. return 1
  72. }
  73. putserv "MODE $channel +o $nick"
  74. return 1
  75. }
  76. if {![botisop $channel]} {
  77. putserv "PRIVMSG $channel :I'm not op'd. I need to be op'd to do that."
  78. return 1
  79. }
  80.  
  81. if {[isop $who $channel]} {
  82. putserv "PRIVMSG $channel :$who is ALREADY op'd in $channel you muppet."
  83. return 1
  84. }
  85.  
  86. putserv "MODE $channel +o $who"
  87. putserv "PRIVMSG $channel :Op'd $who on $channel."
  88. putlog "$nick made me op $who in $channel."
  89. }
  90. #End of pub_do_op
  91.  
  92. #----------------------------------------------------------------
  93.  
  94. #Deop someone
  95. proc pub_do_deop {nick host handle channel testes} {
  96. global botnick
  97. set who [lindex $testes 0]
  98. if {$who == ""} {
  99. putserv "PRIVMSG $channel :Usage: !deop <Nick to Deop>"
  100. return 1
  101. }
  102. if {[string tolower $who] == [string tolower $botnick]} {
  103. putserv "MODE $channel -o $nick"
  104. putserv "PRIVMSG $channel :This is not fair, you think that's funny? Trying to make me deop myself ? you muppet."
  105. return 1
  106. }
  107. if {[string tolower $who] == [string tolower $nick]} {
  108. putserv "PRIVMSG $channel :You really wanna deop yourself $nick, ok then here goes."
  109. putserv "MODE $channel -o $nick"
  110. return 1
  111. }
  112. if {[matchattr $who +n]} {
  113. putserv "MODE $channel -o $nick"
  114. putserv "PRIVMSG $channel :I i worship my master $nick, im not gonna deop my owner!"
  115. return 1
  116. }
  117. if {![isop $who $channel]} {
  118. putserv "PRIVMSG $channel :That user is already deop'd."
  119. return 1
  120. }
  121. putserv "MODE $channel -o $who"
  122. return 1
  123. }
  124. #end of pub_do_deop
  125.  
  126. #----------------------------------------------------------------
  127.  
  128. #Make the bot voice someone
  129. proc pub_do_voice {nick host handle channel testes } {
  130. set who [lindex $testes 0]
  131. if {$who == ""} {
  132. if {![botisop $channel]} {
  133. putserv "PRIVMSG $channel :I'm not op'd. Muppet."
  134. return 1
  135. }
  136. if {[isvoice $channel]} {
  137. putserv "PRIVMSG $channel :YOU are ALREADY voice'd in $channel you dumbass."
  138. return 1
  139. }
  140. putserv "MODE $channel +v $nick"
  141. return 1
  142. }
  143. if {![botisop $channel]} {
  144. putserv "PRIVMSG $channel :I'm not op'd. Muppet."
  145. return 1
  146. }
  147.  
  148. if {[isvoice $who $channel]} {
  149. putserv "PRIVMSG $channel :$who is ALREADY voice'd in $channel you dumbass."
  150. return 1
  151. }
  152.  
  153. putserv "MODE $channel +vvvvv $who "
  154. putserv "PRIVMSG $channel :Voice'd $who on $channel."
  155. putlog "$nick made me op $who in $channel."
  156. }
  157. #End of pub_do_voice
  158.  
  159. #----------------------------------------------------------------
  160.  
  161. #Devoice someone
  162. proc pub_do_devoice {nick host handle channel testes} {
  163. global botnick
  164. set who [lindex $testes 0]
  165. if {$who == ""} {
  166. putserv "PRIVMSG $channel :Usage: !devoice <Nick to Devoice>"
  167. return 1
  168. }
  169. if {[string tolower $who] == [string tolower $botnick]} {
  170. putserv "MODE $channel -v $nick"
  171. putserv "PRIVMSG $channel :This is not fair, Think that's funny? Trying to make me devoice myself?"
  172. return 1
  173. }
  174. if {[string tolower $who] == [string tolower $nick]} {
  175. putserv "PRIVMSG $channel :You really wanna devoice yourself $nick, well ok, here goes. as your wish"
  176. putserv "MODE $channel -v $nick"
  177. return 1
  178. }
  179. if {[matchattr $who +n]} {
  180. putserv "MODE $channel -v $nick"
  181. putserv "PRIVMSG $channel :Im not gonna devoice my owner! You think im a stupid bot?"
  182. return 1
  183. }
  184. if {![isvoice $who $channel]} {
  185. putserv "PRIVMSG $channel :That user is already devoice'd."
  186. return 1
  187. }
  188. putserv "MODE $channel -v $who"
  189. return 1
  190. }
  191. #end of pub_do_devoice
  192.  
  193. #----------------------------------------------------------------
  194.  
  195. #Change topic on channel
  196. proc pub_do_topic {user host handle channel testes} {
  197. set what [lrange $testes 0 end]
  198. if {$what == ""} {
  199. putserv "PRIVMSG $channel :Usage: !topic <Topic you want.>"
  200. return 1
  201. }
  202. if {![botisop $channel]} {
  203. putserv "PRIVMSG $channel : I need to be op'd on that channel to change the topic."
  204. return 1
  205. }
  206.  
  207. putserv "TOPIC $channel :$what"
  208. return 1
  209. }
  210. #end of pub_do_topic
  211.  
  212. #----------------------------------------------------------------
  213.  
  214. #Permban someone
  215. proc pub_do_perm {nick host handle channel testes} {
  216. global botnick
  217. set why [lrange $testes 1 end]
  218. set who [lindex $testes 0]
  219. set ban [maskhost [getchanhost $who $channel]]
  220. if {$who == ""} {
  221. putserv "PRIVMSG $channel :Usage: !perm <Nick to shitlist>"
  222. set ban [maskhost [getchanhost $channel]]
  223. return 1
  224. }
  225. if {![onchan $who $channel]} {
  226. putserv "PRIVMSG $channel :$who aint on $channel."
  227. return 1
  228. }
  229. if {[string tolower $who] == [string tolower $botnick]} {
  230. putserv "KICK $channel $nick :Dumbass. I aint bannin' myself!"
  231. return 1
  232. }
  233. if {[matchattr $who +n]} {
  234. putserv "NOTICE $who :$nick tried to permban you. Better have a talk with him."
  235. putserv "PRIVMSG $channel :You tried to permban $who, He's my OWNER! I'm tellin' him now..."
  236. return 1
  237. }
  238. newchanban $channel $ban $nick $why
  239. stick $ban $channel
  240. putserv "KICK $channel $who :$why 1 5,1•4•5•14,1.:X:. 14,1Gô15,1G14,1eR4,1.:X:. 5,1•4•5•"
  241. putlog "$nick made me permban $who who was $ban and the reason was $why."
  242. putserv "PRIVMSG $channel :PermBanned $who on $channel with reason: $why."
  243. return 1
  244. }
  245. #end of pub_do_perm
  246. #ban
  247.  
  248. proc ban:pub {nick uhost hand chan arg} {
  249. set ban [lindex $arg 0]
  250. if {[string match *!*@* $ban]} {pushmode $chan +b $ban} {pushmode $chan +b *!*@[lindex [split [getchanhost $ban] @] 1]}
  251. }
  252.  
  253. #end
  254. #kban
  255.  
  256. proc kban:pub {nick uhost hand chan arg} {ban:pub $nick $uhost $hand $chan $arg;pub_do_kick $nick $uhost $hand $chan $arg}
  257.  
  258. #----------------------------------------------------------------
  259.  
  260. #Kick someone
  261. proc pub_do_kick {nick uhost hand chan arg} {
  262. global botnick
  263. set who [lindex $arg 0]
  264. set why [lrange $arg 1 end]
  265. if {![onchan $who $chan]} {
  266. putserv "PRIVMSG $channel :$who isnt on $chan."
  267. return 1
  268. }
  269. if {[string tolower $who] == [string tolower $botnick]} {
  270. putserv "KICK $chan $nick :hah. not funny.1 5,1•4•5•14,1.:X:. 14,1Gô15,1G14,1eR4,1.:X:. 5,1•4•5•"
  271. return 1
  272. }
  273. if {$who == ""} {
  274. putserv "PRIVMSG $chan :Useage: !k <nick to kick>"
  275. return 1
  276. }
  277. if {$who == $nick} {
  278. putserv "PRIVMSG $chan :Why the hell do you want to kick yourself $nick?"
  279. return 1
  280. }
  281. if {[matchattr $who +n]} {
  282. putserv "KICK $chan $nick :Trying to kick my owner eh? ;Þ"
  283. return 1
  284. }
  285. putserv "KICK $chan $who :$why 1 5,1•4•5•14,1.:X:. 14,1Gô15,1G14,1eR4,1.:X:. 5,1•4•5•"
  286. putserv "PRIVMSG $chan :Kicked $who from $channel with this saying: $why. :)"
  287. return 1
  288. }
  289. #End of pub_do_kick
  290.  
  291. #----------------------------------------------------------------
  292.  
  293. #Delete a host from the banlist.
  294. proc pub_do_unban {nick host handle channel testes} {
  295. set who [lindex $testes 0]
  296. if {$who == ""} {
  297. putserv "NOTICE $nick :Usage: <Host to unban>"
  298. return 1
  299. }
  300. putserv "MODE $channel -b $who"
  301. putlog "$nick made me Delete $who from banlist."
  302. return 1
  303. }
  304. #end of pub_do_unban
  305.  
  306. #----------------------------------------------------------------
  307.  
  308. #Remove user from shitlist
  309. proc pub_do_unperm {nick host handle channel testes} {
  310. set who [lindex $testes 0]
  311. if {$who == ""} {
  312. putserv "NOTICE $nick :Usage: <Shit to remove>"
  313. return 1
  314. }
  315. killchanban $channel $who
  316. putlog "$nick made me Delete $who from shitlist."
  317. return 1
  318. }
  319. #end of pub_do_unperm
  320.  
  321. #----------------------------------------------------------------
  322.  
  323. #banlist
  324. proc pub_do_bans {nick uhost hand chan text} {
  325. puthelp "NOTICE $nick :- \037\002Ban List for\002\037 ($chan.)"
  326. foreach {a b c d} [banlist $chan] {
  327. puthelp "NOTICE $nick :- [format %-12s%-12s%-12s%-12s $a $b $c $d]"
  328. }
  329. puthelp "NOTICE $nick :- \037\002Ban List for\002\037 ($chan Completed.)"
  330. }
  331. #end of banlist
  332.  
  333. #----------------------------------------------------------------
  334.  
  335. #Set the bot away.
  336. proc pub_do_away {nick host handle channel testes} {
  337. set why [lrange $testes 0 end]
  338. if {$why == ""} {
  339. putserv "NOTICE $nick :!away <The away msg you want me to use.>"
  340. return 1
  341. }
  342. putserv "AWAY :$why"
  343. putserv "NOTICE $nick :Away MSG set to $why."
  344. return 1
  345. }
  346. #end of pub_do_away
  347.  
  348. #----------------------------------------------------------------
  349.  
  350. #Set the bot back.
  351. proc pub_do_back {nick host handle channel testes} {
  352. putserv "AWAY :"
  353. putserv "NOTICE $nick :I'm back."
  354. }
  355. #end of pub_do_back
  356.  
  357. #----------------------------------------------------------------
  358.  
  359. #Change the mode in the channel
  360. proc pub_do_mode {nick host handle channel testes} {
  361. set who [lindex $testes 0]
  362. if {![botisop $channel]} {
  363. putserv "NOTICE $nick :I'm not op'd in $channel you LAMER!"
  364. return 1
  365. }
  366. if {$who == ""} {
  367. putserv "NOTICE $nick :Usage: !mode <Channel mode you want to set>"
  368. return 1
  369. }
  370. putserv "MODE $channel $who"
  371. return 1
  372. }
  373. #end of pub_do_mode
  374.  
  375.  
  376. #Set the rehash
  377. proc pub_do_rehash {nick host handle channel testes} {
  378. global botnick
  379. set who [lindex $testes 0]
  380. if {$who == ""} {
  381. rehash
  382. putquick "NOTICE $nick : Rehashing TCL script(s) and variables"
  383. return 1
  384. }
  385. }
  386.  
  387. #Set the restart
  388. proc pub_do_restart {nick host handle channel testes} {
  389. global botnick
  390. set who [lindex $testes 0]
  391. if {$who == ""} {
  392. restart
  393. putquick "NOTICE $nick : Restarting Bot TCL script(s) and variables"
  394. return 1
  395. }
  396. }
  397.  
  398. #Set the jump
  399. proc pub_do_jump {nick host handle channel testes} {
  400. global botnick
  401. set who [lindex $testes 0]
  402. if {$who == ""} {
  403. jump
  404. putquick "NOTICE $nick : Changing Servers"
  405. return 1
  406. }
  407. }
  408.  
  409. #Set the save
  410. proc pub_do_save {nick host handle channel testes} {
  411. global botnick
  412. set who [lindex $testes 0]
  413. if {$who == ""} {
  414. save
  415. putquick "NOTICE $nick :Saving user file"
  416. putquick "NOTICE $nick :Saving Channel File"
  417. return 1
  418. }
  419. }
  420.  
  421. #Hop the bot!
  422.  
  423. # Set this to 1 if the bot should hop upon getting deopped, 0 if it should ignore it.
  424. set hopondeop 1
  425.  
  426. # Set this to 1 if the bot should kick those who deop it upon returning, 0 if not.
  427. # NOTE: The bot owner will be immune to this kick even if it is enabled.
  428. set kickondeop 0
  429.  
  430. #Don't Edit anything below!
  431.  
  432. bind pub m "!hop" hop:pub
  433. bind pub m "!cycle" hop:pub
  434. bind msg m "hop" hop:msg
  435. bind mode - * hop:mode
  436.  
  437. proc hop:pub { nick uhost hand chan text } {
  438. putlog "Hopping channel $chan at $nick's Request"
  439. putserv "PRIVMSG $chan :Cycle Command used by $nick , Cycling 4,1-=15GoGeRs4=-3 MaGic"
  440. putserv "PART :$chan"
  441. putserv "JOIN :$chan"
  442. putserv "PRIVMSG $chan :"
  443. }
  444.  
  445. proc hop:msg { nick uhost hand text } {
  446. putlog "Hopping channel $text at $nick's Request"
  447. putserv "PART :$text"
  448. putserv "JOIN :$text"
  449. putserv "PRIVMSG $text :Cycle Command was used by $nick 4,1-=15GoGeRs4=-3 MaGic"
  450. }
  451.  
  452. proc hop:mode { nick uhost hand chan mc vict } {
  453. global hopondeop kickondeop botnick owner
  454. if {$mc == "-o" && $vict == $botnick && $hopondeop == 1} {
  455. putlog "Hopping channel $chan due to deop"
  456. putserv "PRIVMSG $chan :"
  457. putserv "PART :$chan"
  458. putserv "JOIN :$chan"
  459. putserv "PRIVMSG $chan :"
  460. if {$nick != $owner && $kickondeop == 1} {
  461. putserv "KICK $chan $nick"
  462. }
  463. }
  464. }
  465. #join/part section, newly added
  466.  
  467. bind pub m ".join" join:pub
  468.  
  469. proc join:pub { nick uhost hand chan text } {
  470. putlog "Joining channel $text by $nick's Request"
  471. putserv "PRIVMSG $chan :Joining channel $text by $nick's Request"
  472. putserv "JOIN :$text"
  473. channel add $text
  474. putserv "PRIVMSG $chan :"
  475. }
  476.  
  477. bind pub m ".part" part:pub
  478.  
  479. proc part:pub { nick uhost hand chan text } {
  480. set chan [lindex $text 0]
  481. if {![isdynamic $chan]} {
  482. puthelp "privmsg $chan :$nick: That channel isn't dynamic!"
  483. return 0
  484. }
  485. if {![validchan $chan]} {
  486. puthelp "privmsg $chan :$nick: That channel doesn't exist!"
  487. return 0
  488. }
  489.  
  490. putlog "Parting $chan by $nick's Request"
  491. putserv "PRIVMSG $chan :Leaving $chan by $nick's Request"
  492. putserv "PART :$chan"
  493. channel remove $chan
  494. }
  495.  
  496. # End - join/part
  497. # botnick - small routine to bot to change nicks.
  498.  
  499. bind pub m ".botnick" botnick:pub
  500.  
  501. proc botnick:pub { mynick uhost hand chan text } {
  502. global nick password
  503. putlog "Changing botnick "
  504. putserv "PRIVMSG $chan :Changing my name?? to $text "
  505. set nick $text
  506. putquick "PRIVMSG nickserv@services.dal.net :identify $text $password"
  507. putserv "PRIVMSG $chan :Identifying to NickServ@services.dal.net..."
  508. }
  509. # end botnick
  510.  
  511. #identifing Botnick
  512.  
  513. proc do_identify {nick host handle chan text} {
  514. global password
  515. putquick "PRIVMSG nickserv@services.dal.net :identify $password"
  516. putserv "NOTICE $nick :Identifying to NickServ@services.dal.net..."
  517. }
  518.  
  519. #end
  520. #uptime
  521.  
  522. bind pub m ".uptime" uptime:pub
  523.  
  524. proc uptime:pub {nick host handle chan arg} {
  525. global uptime
  526. set uu [unixtime]
  527. set tt [incr uu -$uptime]
  528. puthelp "privmsg $chan :$nick:4,1 My uptime is [duration $tt]."
  529. }
  530.  
  531. #End of uptime
  532.  
  533. #addchattr with flags
  534.  
  535.  
  536. proc chattr:pub {nick uhost handle chan arg} {
  537. set handle [lindex $arg 0]
  538. set flags [lindex $arg 1]
  539. if {![validuser $handle]} {
  540. puthelp "privmsg $chan :$nick: That handle doesn't exist!"
  541. return 0
  542. }
  543. if {$flags == ""} {
  544. puthelp "privmsg $chan :$nick: Syntax: .chattr <handle> <+|-><flags>"
  545. return 0
  546. }
  547. chattr $handle $flags
  548. puthelp "privmsg $chan :Added that! $nick."
  549. }
  550. #adduser
  551. bind pub m ".adduser" adduser:pub
  552.  
  553. proc adduser:pub {nick uhost handle chan arg} {
  554. set handle [lindex $arg 0]
  555. set hostmask [lindex $arg 1]
  556. if {[validuser $handle]} {
  557. puthelp "privmsg $chan :$nick: That user already exists!"
  558. return 0
  559. }
  560. if {$hostmask == ""} {
  561. set host [getchanhost $handle]
  562. if {$host == ""} {
  563. puthelp "privmsg $chan :$nick: I can't get $handle's host."
  564. puthelp "privmsg $chan :$nick: Syntax: !adduser <handle> <hostmask (nick!user@host) wildcard acceptable>"
  565. return 0
  566. }
  567. if {![validuser $handle]} {
  568. adduser $handle *!$host
  569. puthelp "privmsg $chan :Added that! $nick."
  570. }
  571. }
  572. if {![validuser $handle]} {
  573. adduser $handle $hostmask
  574. puthelp "privmsg $chan :Added that! $nick."
  575.  
  576. }
  577. }
  578. #end
  579. #deluser
  580. bind pub m ".deluser" deluser:pub
  581.  
  582. proc deluser:pub {nick uhost handle chan arg} {
  583. set handle [lindex $arg 0]
  584. set hostmask [lindex $arg 1]
  585. if {[validuser $handle]} {
  586. deluser $handle
  587. puthelp "privmsg $chan :$nick: User has been deleted from my database !"
  588. return 0
  589. }
  590. if {![validuser $handle]} {
  591. puthelp "privmsg $chan :$nick: User does not exisit on my database !"
  592. return 0
  593. }
  594. }
  595.  
  596. #access
  597. proc pub_access {nick uhost handle chan arg} {
  598.  
  599. if {![validuser [lindex $arg 0]]} {puthelp "privmsg $chan :[lindex $arg 0] does not exist";return}
  600. if {[matchattr [lindex $arg 0] n]} {puthelp "privmsg $chan :[lindex $arg 0] is an \002Owner";return}
  601. if {[matchattr [lindex $arg 0] m]} {puthelp "privmsg $chan :[lindex $arg 0] is a \002Master";return}
  602. if {[matchattr [lindex $arg 0] o]} {puthelp "privmsg $chan :[lindex $arg 0] is an \002Operator";return}
  603. puthelp "privmsg $chan :[lindex $arg 0] is Basic"
  604. }
  605.  
  606. #info
  607. proc pub_info {nick uhost handle chan arg} {
  608. if {$arg == "none"} {
  609. setuser $handle info ""
  610. puthelp "privmsg $chan :Added that! $nick."
  611. }
  612. if {$arg != "none" && $arg != ""} {
  613. setuser $handle info $arg
  614. puthelp "privmsg $chan :Added that! $nick."
  615. }
  616. if {$arg == ""} {
  617. if {[getuser $handle info] == ""} {
  618. puthelp "privmsg $chan :$nick: You don't have an info."
  619. return 0
  620. }
  621. puthelp "privmsg $chan :$nick: Your info is: [getuser $handle info]"
  622. }
  623. }
  624. #say & act
  625.  
  626. proc pub:say {nick uhost handle chan arg} {puthelp "privmsg $chan :$arg"}
  627. proc pub:global {nick uhost handle chan arg} {
  628. foreach chan [channels] {
  629. puthelp "privmsg $chan :\002 $arg \002 This Message Broadcasted by request of $nick "
  630. }
  631. }
  632. proc pub:act {nick uhost handle chan arg} {puthelp "privmsg $chan :\001ACTION $arg\001"}
  633.  
  634. putlog "4Channel Public Commands Script 3.0 by 4,1{15GoGeRs4@15rEl14oD15eD4}"
Add Comment
Please, Sign In to add comment