Snippets
  • Uploaded By: drfunk
  • Author: D[]cToRFuNk
  • Added: 10 days ago
  • Updated: 10 days ago
  • mIRC Version: v7.57
  • Hits: 51
  • Size: 4.33KB
  • Downloads: 3
  • Review By: westor

Simple ZNC System v0.2

This is a simple ZNC system..

I created this code for my own use.. but I want to share with you!

  
  0    0  Login to Vote.


Source Code:
  1. /*
  2. * I created this code for my own use.. but I want to share with you!
  3. * ZNC v0.2 by D[]cToRFuNk; irc.vircio.net / irc.virtualife.com.br / irc.vircio.net / irc.brasvip.org =s
  4. * email; adm.clashbrasil@gmail.com
  5. *
  6. * Special Thanks to rockcavera for help me with my doubts!
  7. */
  8.  
  9. ON *:load:{
  10. .echo -a [ZNC] HELP - Simple ZNC system v0.2 by D[]cToRFuNk
  11. .echo -a 
  12. .echo -a Before All, configure IPZNC, ZNC PORT, MYNETWORKS and MYUSER with a simple right click!
  13. .echo -a So.. One click to set and another one to unset the options =D
  14. .echo -a 
  15. .echo -a The system ask the password when you going to connect to..
  16. }
  17.  
  18. menu status,channel,query {
  19. ZNC
  20. .IPZNC
  21. ..$iif(%znc.ip,%znc.ip,IPZNC) :$iif(%znc.ip,unset %znc.ip,set %znc.ip $$?"What's your ZNC IP?")
  22. .ZNCPORT
  23. ..$iif(%znc.port,%znc.port,PORT) :$iif(%znc.port,unset %znc.port,set %znc.port $$?"What's your ZNC PORT?")
  24. .MYNETWORKS
  25. ..$iif(%znc.rede1,%znc.rede1,SET NETWORK1) :$iif(%znc.rede1,unset %znc.rede1,set %znc.rede1 $$?"What's the NETWORK?") | inc %znc.redes
  26. ..-
  27. ..$iif(%znc.rede2,%znc.rede2,SET NETWORK2) :$iif(%znc.rede2,unset %znc.rede2,set %znc.rede2 $$?"What's the NETWORK?") | inc %znc.redes
  28. ..-
  29. ..$iif(%znc.rede3,%znc.rede3,SET NETWORK3) :$iif(%znc.rede3,unset %znc.rede3,set %znc.rede3 $$?"What's the NETWORK?") | inc %znc.redes
  30. ..-
  31. ..$iif(%znc.rede4,%znc.rede4,SET NETWORK4) :$iif(%znc.rede4,unset %znc.rede4,set %znc.rede4 $$?"What's the NETWORK?") | inc %znc.redes
  32. ..-
  33. ..$iif(%znc.rede5,%znc.rede5,SET NETWORK5) :$iif(%znc.rede5,unset %znc.rede5,set %znc.rede5 $$?"What's the NETWORK?") | inc %znc.redes
  34. ..-
  35. ..$iif(%znc.rede6,%znc.rede6,SET NETWORK6) :$iif(%znc.rede6,unset %znc.rede6,set %znc.rede6 $$?"What's the NETWORK") | inc %znc.redes
  36. ..-
  37. ..$iif(%znc.rede7,%znc.rede7,SET NETWORK7) :$iif(%znc.rede7,unset %znc.rede7,set %znc.rede7 $$?"What's the NETWORK") | inc %znc.redes
  38. ..-
  39. ..$iif(%znc.rede8,%znc.rede8,SET NETWORK8) :$iif(%znc.rede8,unset %znc.rede8,set %znc.rede8 $$?"What's the NETWORK") | inc %znc.redes
  40. ..-
  41. ..$iif(%znc.redes,%znc.redes NETWORKS!,FIX Nº NETWORKS) :$iif(%znc.redes,unset %znc.redes,set %znc.redes $$?"What's the number of networks set?")
  42. .MYUSER
  43. ..$iif(%znc.user,%znc.user,USER) :$iif(%znc.user,unset %znc.user,set %znc.user $$?"What's your username?")
  44. .-
  45. .ZNC GLOBAL
  46. ..ADDUSER:.msg *controlpanel adduser $$?"What's the username?" $$?"What's your password?"
  47. ..DELUSER:.msg *controlpanel deluser $$?"What's the username?"
  48. ..-
  49. ..ADDNETWORK:.msg *controlpanel addnetwork $$?"What's the username?" $$?"What's the network name?"
  50. ..DELNETWORK:.msg *controlpanel delnetwork $$?"What's the username?" $$?"What's the netowrk name?"
  51. ..ADDSERVER:.msg *controlpanel addserver $$?"What's the username?" $$?"What's the network name?" $$?"What's the address of the server?"
  52. ..DELSERVER:.msg *controlpanel delserver $$?"What's the username?" $$?"What's the network name?" $$?"What's the adress of the server?"
  53. ..ADDCHAN:.msg *controlpanel addchan $$?"What's the username?" $$?"What's the network name?" $$?"What's the #chan name?"
  54. ..DELCHAN:.msg *controlpanel delchan $$?"What's the username?" $$?"What's the network name?" $$?"What's the #chan name?"
  55. ..-
  56. ..LISTUSERS:.msg *controlpanel listusers
  57. ..LISTNETWORKS:.msg *controlpanel listnetworks $$?"What's the username?"
  58. ..LISTSERVERS:.znc listservers
  59. ..-
  60. ..AUTOREPLY:.msg *autoreply set $$?"What's the away message?"
  61.  
  62. .CONNECT:.z.nc
  63. .JUMPNETWORK:.znc jumpnetwork $$?"What's network name?"
  64. .-
  65. .HELP
  66. ..HELP ZNC:.znc help
  67. ..CONTROL PANEL:.msg *controlpanel help
  68. .-
  69. .LASTSEEN:.msg *lastseen show
  70. }
  71. alias z.nc {
  72. set -l %z.ncpass $$?*"What's your ZNC password?"
  73. set -l %znc.nredes 1
  74. while (%znc.nredes <= %znc.redes) {
  75. if ($null == %znc.rede [ $+ [ %znc.nredes ] ]) {
  76. inc %znc.nredes
  77. }
  78. else {
  79. .server -m %znc.ip %znc.port %znc.user $+ / $+ %znc.rede [ $+ [ %znc.nredes ] ] $+ : $+ %z.ncpass
  80. }
  81. inc %znc.nredes
  82. }
  83. }
  84.  


Comments (2)
September 10th, 2019 - By: westor
Admin
Just correct the title by removing the version from there, it's duplicated!
September 10th, 2019 - By: drfunk
Oh, okay. Thanks!

Login to Comment.