Advertisement
Guest User

GROSSE BITE

a guest
Aug 26th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.51 KB | None | 0 0
  1. ; ###### Dialog ######
  2.  
  3. dialog smemory {
  4. title "Celui qui rêve éternellement ne peut mourir..."
  5. size 100 100 250 280
  6. option dbu
  7. button "Quitter" , 1 , 5 265 240 10 , ok
  8. icon 2 , 45 0 250 100
  9. list 3 , 5 205 240 60 , multi , vsbar , read
  10. tab "Options I" , 4 , 5 5 240 195
  11. tab "Options II" , 5
  12. tab "Gestionnaire" , 6
  13. tab "Rechercher un nick" , 7
  14. tab "Recherches diverses" , 8
  15.  
  16. box "Activation de Seen Memory..." , 45 , 10 80 230 25 , tab 4
  17. button "?" , 46 , 15 89 7 10 , tab 4
  18. radio "Oui" , 47 , 25 90 30 10 , group , tab 4
  19. radio "Non" , 48, 215 90 20 10 , tab 4
  20. text "<----------------------------------------------- Ou ------------------------------------------------------>" , 49 , 45 91 170 10 , tab 4
  21. box "Status de la base de donnée..." , 50 , 10 110 230 45 , tab 4
  22. button "?" , 51 , 15 119 7 10 , tab 4
  23. text "0% " , 52 , 25 121 20 10 , tab 4
  24. text "" , 53 , 36 121 182 10 , tab 4
  25. text "100% " , 54 , 218 121 20 10 , tab 4
  26. button "?" , 55 , 15 135 7 10 , tab 4
  27. text "Maximum de personnes dans la database ==> Min ( 100 ) " , 56 , 25 137 150 10 , tab 4
  28. edit "" , 57 , 165 135 17 10 , tab 4
  29. text "Max ( 4000 )" , 58 , 185 137 30 10 , tab 4
  30. button "OK" , 59 , 220 135 15 10 , tab 4
  31. box "Options de fonctionnement de Seen Memory..." , 60 , 10 160 230 35 , tab 4
  32. button "?" , 61 , 15 169 7 10 , tab 4
  33. text "Commande d'activation => " , 62 , 25 170 70 10 , tab 4
  34. edit "" , 63 , 90 169 30 10 , autohs , tab 4
  35. check "Indiquer le temps de recherche" , 64 , 150 169 90 10 , tab 4
  36. button "?" , 65 , 15 182 7 10 , tab 4
  37. text "Réponse channel par => " , 66 , 25 183 70 10 , tab 4
  38. radio "Message sur channel" , 67 , 90 182 60 10 , group , tab 4
  39. radio "Privé" , 68, 167 182 30 10 , tab 4
  40. radio "Notice" , 69 , 207 182 30 10 , group , tab 4
  41.  
  42. box "Options de fonctionnement de Seen Memory...( suite )" , 100 , 10 25 230 170 , tab 5
  43. button "?" , 101 , 15 34 7 10 , tab 5
  44. check "Répondre aux demandes par message privé ?" , 102 , 30 34 120 10 , tab 5
  45. button "?" , 103 , 15 49 7 10 , tab 5
  46. check "Répondre aux demandes par Dcc Chat ?" , 104 , 30 49 120 10 , tab 5
  47. button "?" , 105 , 15 79 7 10 , tab 5
  48. check "Seen Flood protection ?" , 106 , 30 79 120 10 , tab 5
  49. text "Maximum de " , 107 , 15 94 40 10 , tab 5
  50. edit "" , 108 , 50 93 20 10 , tab 5
  51. text "requêtes par adresse en " , 109 , 75 94 60 10 , tab 5
  52. edit "" , 110 , 140 93 20 10 , tab 5
  53. text "secondes." , 111 , 170 94 40 10 , tab 5
  54. button "?" , 112 , 15 64 7 10 , tab 5
  55. check "Afficher dans la fenêtre status les demandes seen ?" , 113 , 30 64 150 10 , tab 5
  56. button "?" , 114 , 15 109 7 10 , tab 5
  57. text "Channels à ne pas logger..." , 115 , 30 110 110 10 , tab 5
  58. edit "" , 116, 15 122 90 10 , tab 5
  59. button "Ajouter" , 117 , 15 137 40 10 , tab 5
  60. button "Effacer" , 118 , 65 137 40 10 , tab 5
  61. list 119 , 120 113 115 42 , multi , vsbar , hsbar, read , sort , tab 5
  62. button "?" , 120 , 15 152 7 10 , tab 5
  63. text "Channels sur lesquels aucune demande seen ne sera traitée..." , 121 , 30 151 80 12 , tab 5
  64. edit "" , 122, 15 167 90 10 , tab 5
  65. button "Ajouter" , 123 , 15 182 40 10 , tab 5
  66. button "Effacer" , 124 , 65 182 40 10 , tab 5
  67. list 125 , 120 156 115 42 , multi , vsbar , hsbar, read , sort , tab 5
  68.  
  69. box "Sauvegarder la base de donnée sur le HD..." , 200 , 10 25 230 40 , tab 6
  70. button "?" , 201 , 15 34 7 10 , tab 6
  71. radio "A chaque déconnection ( Recommandé )" , 202 , 30 34 120 10 , group , tab 6
  72. button "?" , 203 , 15 49 7 10 , tab 6
  73. radio "Toutes les heures et à la déconnection ( Non recommandé )" , 204 , 30 49 180 10 , tab 6
  74. box "Epuration de la base de donnée..." , 205 , 10 70 230 70 , tab 6
  75. button "?" , 206 , 15 79 7 10 , tab 6
  76. text "Epurer les éléments datant de plus de:" , 207 , 30 80 100 10 , tab 6
  77. edit "" , 208 , 130 79 20 10 , tab 6
  78. text "jours..." , 209 , 160 80 20 10 , tab 6
  79. check "A chaque démarrage de mIRC..." , 210 , 15 95 120 10 , tab 6
  80. button "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Maintenant !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" , 211 , 15 110 220 10 , tab 6
  81. button "/_!_\ EFFACER TOUTE LA LISTE /_!_\" , 212 , 15 125 220 10 , tab 6
  82.  
  83. box "Rechercher un nick dans la base de donnée..." , 300 , 10 25 230 170 , tab 7
  84. button "?" , 301 , 15 34 7 10 , tab 7
  85. text "Recherche de: " , 302 , 30 35 40 10 , tab 7
  86. edit "" , 303 , 70 34 80 10 , tab 7
  87. button "Lancer la recherche" , 304 , 155 34 80 10 , tab 7
  88. box "Résultats de la recherche..." , 305 , 20 55 210 130 , tab 7
  89. text "Nick:" , 306 , 30 65 180 15 , tab 7
  90. text "Adresse:" , 307 , 30 80 180 15 , tab 7
  91. text "Action:" , 308 , 30 95 180 15 , tab 7
  92. text "Message:" , 309 , 30 125 180 15 , tab 7
  93. text "Date:" , 310 , 30 140 180 15 , tab 7
  94. text "Status actuel:" , 311 , 30 155 180 15 , tab 7
  95. text "Temps de recherche:" , 312 , 30 170 180 15 , tab 7
  96. text "Channel:" , 313 , 30 110 180 15 , tab 7
  97.  
  98. box "Recherches diverses..." , 400 , 10 25 230 170 , tab 8
  99. button "?" , 401 , 15 34 7 10 , tab 8
  100. text "Rechercher les éléments de la base de donnée de moins de" , 402 , 30 35 150 10 , tab 8
  101. edit "" , 403 , 175 34 13 10 , tab 8
  102. text "jour(s)." , 404 , 195 35 20 10 , tab 8
  103. button "Lancer la recherche" , 405 , 15 50 220 10 , tab 8
  104. button "?" , 406 , 15 64 7 10 , tab 8
  105. text "Rechercher les éléments de la base de donnée de plus de" , 407 , 30 65 150 10 , tab 8
  106. edit "" , 408 , 175 64 13 10 , tab 8
  107. text "jour(s)." , 409 , 195 65 20 10 , tab 8
  108. button "Lancer la recherche" , 410 , 15 80 220 10 , tab 8
  109. button "?" , 411 , 15 94 7 10 , tab 8
  110. text "Rechercher l'adresse:" , 412 , 30 95 60 10 , tab 8
  111. edit "" , 413 , 90 94 145 10 , tab 8
  112. button "Lancer la recherche" , 414 , 15 110 220 10 , tab 8
  113. text "Résultats de la recherche..." , 415 , 15 125 220 10 , center , tab 8
  114. list 416 , 15 135 220 60 , multi , vsbar , hsbar, read , tab 8
  115. }
  116.  
  117. dialog smemory-chargement {
  118. title ""
  119. size -1 -1 500 100
  120. button "Ok :) " , 1 , 50 70 400 20 , ok
  121. text "" , 2 , 10 5 480 20 , center
  122. text "" , 3 , 10 45 480 20 , center
  123. text "" , 4 , 10 25 480 20 , center
  124. }
  125.  
  126. dialog mess-smemory {
  127. title "Celui qui rêve éternellement ne peut mourir..."
  128. size -1 -1 400 60
  129. button "J'ai bien tout compris :+p" , 1 , 100 30 200 20 , ok
  130. text "" , 2 , 5 10 390 15 , center
  131. }
  132.  
  133. ; ###### Evenements Dialog ######
  134.  
  135. on *:dialog:smemory:sclick:4:{ set %smemory.check 1 | did -v smemory 2 | smaide 7 | verif-smemory }
  136. on *:dialog:smemory:sclick:5:{ set %smemory.check 0 | did -h smemory 2 | smaide 66 }
  137. on *:dialog:smemory:sclick:6:{ set %smemory.check 0 | did -h smemory 2 | smaide 113 }
  138. on *:dialog:smemory:sclick:7:{ set %smemory.check 0 | did -h smemory 2 | smaide 150 }
  139. on *:dialog:smemory:sclick:8:{ set %smemory.check 0 | did -h smemory 2 | smaide 161 }
  140. on *:dialog:smemory:sclick:46:{ smaide 26 }
  141. on *:dialog:smemory:sclick:47:{ set %smemory-seen oui | if ( $window(@seen) == $null ) { sm-aff-seen } | sm-status-seen }
  142. on *:dialog:smemory:sclick:48:{ set %smemory-seen non }
  143. on *:dialog:smemory:sclick:51:{ smaide 33 }
  144. on *:dialog:smemory:sclick:55:{ smaide 38 }
  145. on *:dialog:smemory:sclick:59:{ if ( $did(smemory,57) == $null ) { set %smemory-max-seen 4000 | verif-smemory | halt }
  146. if ( $did(smemory,57) > 4000 ) { set %smemory-max-seen 4000 | verif-smemory | halt }
  147. if ( $did(smemory,57) < 100 ) { set %smemory-max-seen 100 | verif-smemory | halt }
  148. set %smemory-max-seen $did(smemory,57) | verif-smemory }
  149. on *:dialog:smemory:sclick:61:{ smaide 49 }
  150. on *:dialog:smemory:edit:63:{ if ( $did(smemory,63) == $null ) { set %smemory-commande seen | verif-smemory | halt }
  151. set %smemory-commande $did(smemory,63) }
  152. on *:dialog:smemory:sclick:64:{ if ( %smemory-temps == oui ) { set %smemory-temps non | halt } | if ( %smemory-temps == non ) { set %smemory-temps oui } }
  153. on *:dialog:smemory:sclick:65:{ smaide 60 }
  154. on *:dialog:smemory:sclick:67:{ set %smemory-type-reponse channel }
  155. on *:dialog:smemory:sclick:68:{ set %smemory-type-reponse message }
  156. on *:dialog:smemory:sclick:69:{ set %smemory-type-reponse notice }
  157.  
  158. on *:dialog:smemory:sclick:101:{ smaide 76 }
  159. on *:dialog:smemory:sclick:102:{ if ( %smemory-prive == oui ) { set %smemory-prive non | halt } | if ( %smemory-prive == non ) { set %smemory-prive oui } }
  160. on *:dialog:smemory:sclick:103:{ smaide 81 }
  161. on *:dialog:smemory:sclick:104:{ if ( %smemory-dcc == oui ) { set %smemory-dcc non | halt } | if ( %smemory-dcc == non ) { set %smemory-dcc oui } }
  162. on *:dialog:smemory:sclick:105:{ smaide 92 }
  163. on *:dialog:smemory:sclick:106:{ if ( %smemory-protection == oui ) { set %smemory-protection non | verif-smemory | halt } | if ( %smemory-protection == non ) { set %smemory-protection oui | verif-smemory } }
  164. on *:dialog:smemory:edit:108:{ if ( $did(smemory,108) == $null ) { set %smemory-max 5 | verif-smemory | halt } | if ( $did(smemory,108) < 1 ) { set %smemory-max 5 | verif-smemory | halt }
  165. set %smemory-max $did(smemory,108) }
  166. on *:dialog:smemory:edit:110:{ if ( $did(smemory,110) == $null ) { set %smemory-protection-temps 10 | verif-smemory | halt } | if ( $did(smemory,110) < 11 ) { set %smemory-protection-temps 10 | verif-smemory | halt }
  167. set %smemory-protection-temps $did(smemory,110) }
  168. on *:dialog:smemory:sclick:112:{ smaide 86 }
  169. on *:dialog:smemory:sclick:113:{ if ( %smemory-log == oui ) { set %smemory-log non | halt } | if ( %smemory-log == non ) { set %smemory-log oui } }
  170. on *:dialog:smemory:sclick:114:{ smaide 98 }
  171. on *:dialog:smemory:sclick:117:{ if ( $did(smemory,116) == $null ) { halt } | if ( $chr(35) !isin $did(smemory,116) ) { mess_sm Entrée invalide... | halt }
  172. if ( $istok(%smemory-channel-non-log,$did(smemory,116),32) == $true ) { mess_sm Ce channel est déjà dans ma base de donnée :p | halt }
  173. set %smemory-channel-non-log %smemory-channel-non-log $did(smemory,116) | verif-smemory }
  174. on *:dialog:smemory:sclick:118:{ if ( $did(smemory,119).sel == $null ) { mess_sm Aucun channel sélectionné :) | halt }
  175. set %smemory-channel-non-log $remtok(%smemory-channel-non-log,$did(smemory,119,$did(smemory,119).sel).text,32) | verif-smemory }
  176. on *:dialog:smemory:sclick:120:{ smaide 106 }
  177. on *:dialog:smemory:sclick:123:{ if ( $did(smemory,122) == $null ) { halt } | if ( $chr(35) !isin $did(smemory,122) ) { mess_sm Entrée invalide... | halt }
  178. if ( $istok(%smemory-channel-non-rep,$did(smemory,122),32) == $true ) { mess_sm Ce channel est déjà dans ma base de donnée :p | halt }
  179. set %smemory-channel-non-rep %smemory-channel-non-rep $did(smemory,122) | verif-smemory }
  180. on *:dialog:smemory:sclick:124:{ if ( $did(smemory,125).sel == $null ) { mess_sm Aucun channel sélectionné :) | halt }
  181. set %smemory-channel-non-rep $remtok(%smemory-channel-non-rep,$did(smemory,125,$did(smemory,125).sel).text,32) | verif-smemory }
  182.  
  183. on *:dialog:smemory:sclick:201:{ smaide 119 }
  184. on *:dialog:smemory:sclick:202:{ set %smemory-sauvegarde deconnection | .timersmsauvegarde off }
  185. on *:dialog:smemory:sclick:203:{ smaide 129 }
  186. on *:dialog:smemory:sclick:204:{ set %smemory-sauvegarde horaire | if ( $server != $null ) { .timersmsauvegarde 0 3600 /sm-sauvegarde-donnée } }
  187. on *:dialog:smemory:sclick:206:{ smaide 138 }
  188. on *:dialog:smemory:edit:208:{ if ( $did(smemory,208) == $null ) { set %smemory-epuration-temps 60 | verif-smemory | halt } | if ( $did(smemory,208) < 1 ) { set %smemory-epuration-temps 15 | verif-smemory | halt }
  189. set %smemory-epuration-temps $did(smemory,208) }
  190. on *:dialog:smemory:sclick:210:{ if ( %smemory-epuration == oui ) { set %smemory-epuration non | halt } | if ( %smemory-epuration == non ) { set %smemory-epuration oui } }
  191. on *:dialog:smemory:sclick:211:{ if ( $window(@seen) == $null ) { mess_sm Le serveur seen n'est pas activée. Veuillez l'activer d'abord :) | halt }
  192. verif_dialog smemory-chargement | dialog -m smemory-chargement smemory-chargement | dialog -t smemory-chargement Seen Memory v1.0 => Epuration des données... Veuillez patientez...
  193. var %filtre = 0 | var %seen = $line(@seen,0) | if ( %seen == 0 ) { goto fin }
  194. var %temps = $ticks | var %i = 1 | var %lig = $line(@seen,%i) | var %i = 0
  195. while ( %lig != $null ) {
  196. did -ra smemory-chargement 3 Temps d'épuration: $calc( ( $ticks - %temps ) / 1024 ) seconde(s) )
  197. if ( %i < 0 ) { /break } | inc %i | var %lig = $line(@seen,%i) | if ( %lig == $null ) { /break }
  198. var %filtrage = $calc( $ctime - $gettok(%lig,5,32) ) | var %temps2 = $calc( 86400 * %smemory-epuration-temps ) | if ( %filtrage > %temps2 ) { dline @seen %i | inc %filtre | did -ra smemory-chargement 4 Elément(s) filtré(s): %filtre sur %seen élément(s). | dec %i | /continue } }
  199. var %fin = $ticks | :fin
  200. if ( %filtre != 0 ) { did -ra smemory-chargement 4 Au total: %filtre élément(s) épuré(s)... | did -ra smemory-chargement 3 Temps d'épuration: $calc( ( %fin - %temps ) / 1024 ) seconde(s) ) | sm-sauvegarde-seen 1 }
  201. if ( %filtre == 0 ) { did -ra smemory-chargement 4 Au total: aucun élément épuré... } }
  202. on *:dialog:smemory:sclick:212:{ window -c @seen | window -hl @seen 50 50 200 200 | sm-sauvegarde-seen | mess_sm La base de donnée a été totalement effacée :) }
  203.  
  204. on *:dialog:smemory:sclick:301:{ smaide 155 }
  205. on *:dialog:smemory:sclick:304:{ if ( $window(@seen) == $null ) { mess_sm Le serveur seen n'est pas activée. Veuillez l'activer d'abord :) | halt }
  206. var %nick = $did(smemory,303) | if ( %nick == $null ) { mess_sm Pas de nick à rechercher :p | halt }
  207. did -ra smemory 307 Adresse: | did -ra smemory 308 Action: | did -ra smemory 309 Message:
  208. did -ra smemory 310 Date: | did -ra smemory 313 Channel:
  209. did -ra smemory 305 Résultats de la recherche... recherche en cours veuillez patienter ...
  210. var %temp = $ticks | var %i = 1 | var %lig = $line(@seen,%i)
  211. while ( %lig != $null ) {
  212. if ( %nick == $gettok(%lig,1,32) ) { var %recherche = %lig | /break }
  213. inc %i | var %lig = $line(@seen,%i) }
  214. var %temps-recherche = $calc( ( $ticks - %temp ) / 1024 ) seconde(s)
  215. if ( %recherche == $null ) { did -ra smemory 306 Nick: aucun nick de ma base de donnée ne correspond :p | goto fin }
  216. did -ra smemory 306 Nick: %nick
  217. did -ra smemory 307 Adresse: $replace($gettok(%recherche,4,32),inconnu,inconnue)
  218. if ( $gettok(%recherche,2,32) == Nick ) { did -ra smemory 308 Action: changement de nick pour $gettok(%recherche,6,32) }
  219. if ( $gettok(%recherche,2,32) != Nick ) { did -ra smemory 308 Action: $replace( $gettok(%recherche,2,32),join,entrée sur un channel,kick,kické(e) d'un channel,part,départ d'un channel,quit,départ de l'Irc) }
  220. did -ra smemory 313 Channel: $replace($gettok(%recherche,3,32),@,N/A)
  221. did -ra smemory 310 Date: il y a $replace($duration($calc( $ctime - $gettok(%recherche,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde)))
  222. if ( $gettok(%recherche,2,32) == Nick ) { did -ra smemory 309 Message: N/A | goto fin }
  223. if ( $gettok(%recherche,6,32) == $null ) { did -ra smemory 309 Message: N/A | goto fin }
  224. did -ra smemory 309 Message: " $strip($gettok(%recherche,6-,32)) "
  225. :fin
  226. if ( $server == $null ) { did -ra smemory 311 Status actuel: vous n'êtes pas connecté... | goto fini }
  227. if ( $comchan($did(smemory,303),1) != $null ) {
  228. var %i = 1 | var %liste_channel = sur | :debchan
  229. if ( $comchan($did(smemory,303),%i) == $null ) { goto finchan }
  230. var %liste_channel = %liste_channel $comchan($did(smemory,303),%i)
  231. inc %i | goto debchan | :finchan }
  232. if ( %liste_channel == $null ) { did -ra smemory 311 Status actuel: $did(smemory,303) n'est sur aucun channel où vous vous trouvez... | goto fini }
  233. did -ra smemory 311 Status actuel: %liste_channel
  234. :fini | did -ra smemory 312 Temps de recherche: %temps-recherche | did -ra smemory 305 Résultats de la recherche... }
  235.  
  236. on *:dialog:smemory:sclick:401:{ smaide 167 }
  237. on *:dialog:smemory:sclick:405:{ if ( $window(@seen) == $null ) { mess_sm Le serveur seen n'est pas activée. Veuillez l'activer d'abord :) | halt }
  238. var %temps = $did(smemory,403) | if ( %temps == $null ) { mess_sm Pas de temps défini :p | halt } | if ( %temps <= 0 ) { mess_sm Pas de temps nul ou négatif :p | halt }
  239. var %temps = $calc( %temps * 86400 ) | did -ra smemory 415 Recherche en cours veuillez patienter... | did -r smemory 416
  240. var %debut = $ticks | var %i = 1 | var %ligne = 1 | var %lig = $line(@seen,%i)
  241. while ( %lig != $null ) {
  242. if ( $calc( $ctime - $gettok(%lig,5,32) ) < %temps ) { did -i smemory 416 %ligne $strip( $sm-format-reponse( %lig ) ) | inc %ligne }
  243. inc %i | var %lig = $line(@seen,%i) }
  244. dec %ligne | var %fin = $ticks
  245. if ( %ligne == 0 ) { did -ra smemory 415 Aucun élément ne correspond aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  246. if ( %ligne > 0 ) { did -ra smemory 415 %ligne élément(s) corresponde(nt) aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  247. did -z smemory 416 }
  248. on *:dialog:smemory:sclick:406:{ smaide 173 }
  249. on *:dialog:smemory:sclick:410:{ if ( $window(@seen) == $null ) { mess_sm Le serveur seen n'est pas activée. Veuillez l'activer d'abord :) | halt }
  250. var %temps = $did(smemory,408) | if ( %temps == $null ) { mess_sm Pas de temps défini :p | halt } | if ( %temps <= 0 ) { mess_sm Pas de temps nul ou négatif :p | halt }
  251. var %temps = $calc( %temps * 86400 ) | did -ra smemory 415 Recherche en cours veuillez patienter... | did -r smemory 416
  252. var %debut = $ticks | var %i = 1 | var %ligne = 1 | var %lig = $line(@seen,%i)
  253. while ( %lig != $null ) {
  254. if ( $calc( $ctime - $gettok(%lig,5,32) ) > %temps ) { did -i smemory 416 %ligne $strip( $sm-format-reponse( %lig ) ) | inc %ligne }
  255. inc %i | var %lig = $line(@seen,%i) }
  256. dec %ligne | var %fin = $ticks
  257. if ( %ligne == 0 ) { did -ra smemory 415 Aucun élément ne correspond aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  258. if ( %ligne > 0 ) { did -ra smemory 415 %ligne élément(s) corresponde(nt) aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  259. did -z smemory 416 }
  260. on *:dialog:smemory:sclick:411:{ smaide 179 }
  261. on *:dialog:smemory:sclick:414:{ if ( $window(@seen) == $null ) { mess_sm Le serveur seen n'est pas activée. Veuillez l'activer d'abord :) | halt }
  262. var %temps = $did(smemory,413) | if ( %temps == $null ) { mess_sm Pas d'adresse définie :p | halt } | if ( @ !isin %temps ) { mess_sm Adresse incorrecte | halt }
  263. did -ra smemory 415 Recherche en cours veuillez patienter... | did -r smemory 416
  264. var %debut = $ticks | var %i = 1 | var %ligne = 1 | var %lig = $line(@seen,%i)
  265. while ( %lig != $null ) {
  266. if ( %temps iswm $gettok(%lig,4,32) ) { did -i smemory 416 %ligne $strip( $sm-format-reponse( %lig ) ) | inc %ligne }
  267. inc %i | var %lig = $line(@seen,%i) }
  268. dec %ligne | var %fin = $ticks
  269. if ( %ligne == 0 ) { did -ra smemory 415 Aucun élément ne correspond aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  270. if ( %ligne > 0 ) { did -ra smemory 415 %ligne élément(s) corresponde(nt) aux critères de recherche... / $calc( ( %fin - %debut ) / 1024 ) seconde(s). }
  271. did -z smemory 416 }
  272.  
  273. ; ###### Alias ######
  274.  
  275. alias clean_smemory {
  276. if ( $dialog(smemory).title != $null ) { dialog -x smemory }
  277. unset %smemory*
  278. linesep | echo $colour(Info Text) -s $timestamp Désintallation de Seen Memory 1.0
  279. echo $colour(Info Text) -s $timestamp Variables effacées...
  280. run -n deltree /y $shortfn($mircdirSeen-Memory)
  281. echo $colour(Info Text) -s $timestamp Répertoire effacé...
  282. echo $colour(Info Text) -s $timestamp Fichier Seen-Memory.mrc effacé de la mémoire...
  283. echo $colour(Info Text) -s $timestamp Désinstallation terminée...
  284. .unload -rs $shortfn($mircdirSeen-Memory.mrc)
  285. }
  286.  
  287. alias decrypt-sm {
  288. if ($2) {
  289. %crypt.i = 0 | %crypt.keynum = 0 | %crypt.keylen = $len($1) | %crypt.textlen = $len($2-) | unset %crypt.result
  290. :start
  291. inc %crypt.i
  292. if (%crypt.keynum >= %crypt.keylen) { %crypt.keynum = 1 } | else { inc %crypt.keynum }
  293. %crypt.decrypt = $calc($asc($mid($2-, %crypt.i, 1)) - $asc($mid($1, %crypt.keynum, 1)))
  294. if (%crypt.decrypt != 32) { %crypt.result = %crypt.result $+ $chr(%crypt.decrypt) }
  295. else { %crypt.result = %crypt.result $+ [ $chr(32) ] $+ $chr(%crypt.decrypt) }
  296. if (%crypt.i < %crypt.textlen) { goto start }
  297. unset %crypt.i | unset %crypt.keynum | unset %crypt.keylen | unset %key.textlen | unset %crypt.decrypt | unset %crypt.textlen | var %ligne = %crypt.result | unset %crypt.result
  298. return %ligne } }
  299.  
  300. alias smaide {
  301. if ( $1 == $null ) { halt }
  302. did -r smemory 3
  303. var %i = $1 | var %x = 1
  304. :deb
  305. var %lig = $read -nl $+ %i $shortfn($mircdirSeen-Memory\Aide._A_)
  306. if ( %lig == $chr(160) ) { goto fin }
  307. if ( %lig == $null ) { goto fin }
  308. did -i smemory 3 %x $decrypt-sm(%auteur2,%lig)
  309. inc %i | inc %x
  310. goto deb
  311. :fin }
  312.  
  313. alias sm-aff-seen {
  314. verif_dialog smemory-chargement | dialog -m smemory-chargement smemory-chargement | dialog -t smemory-chargement Seen Memory v1.0... Chargement de la base de donnée... Veuillez patienter...
  315. window -hl @seen 50 50 200 200
  316. var %fic = " $+ $mircdirSeen-Memory\Database.ash $+ "
  317. var %nomb = 0 | var %filtre = 0 | if ( $lines(%fic) == 0 ) { goto fin } | var %temps = $ticks | var %i = 1 | var %lig = $read -nl $+ %i %fic | var %i = 0
  318. while ( %lig != $null ) {
  319. inc %i | var %lig = $read -nl $+ %i %fic | if ( %lig == $null ) { /break }
  320. if ( %smemory-epuration == oui ) { var %filtrage = $calc( $ctime - $gettok(%lig,5,32) ) | var %temps2 = $calc( 86400 * %smemory-epuration-temps ) | if ( %filtrage > %temps2 ) { inc %filtre | did -ra smemory-chargement 4 Elément(s) filtré(s): %filtre | /continue } }
  321. aline -l @seen %lig | inc %nomb
  322. did -ra smemory-chargement 2 Eléments chargés: %nomb | did -ra smemory-chargement 3 Temps écoulé: $calc( ( $ticks - %temps ) / 1024 ) seconde(s) }
  323. :fin
  324. if ( %nomb != 0 ) { did -ra smemory-chargement 2 %nomb élément(s) ont été chargé | did -ra smemory-chargement 3 Temps de chargement: $calc( ( $ticks - %temps ) / 1024 ) seconde(s) }
  325. if ( %nomb == 0 ) { did -ra smemory-chargement 2 Aucun élément chargé... Base de donnée vide | did -r smemory-chargement 3 }
  326. if ( ( %smemory-epuration == oui ) && ( %filtre != 0 ) ) { sm-sauvegarde-seen 1 } }
  327.  
  328. alias sm-check {
  329. var %i = 1 | var %rep = $line(@seen,%i)
  330. while ( %rep != $null ) { if ( $gettok(%rep,1,32) == $1 ) { rline @seen %i $1- | halt } | inc %i | var %rep = $line(@seen,%i) }
  331. if ( $line(@seen,0) < %smemory-max-seen ) { aline -l @seen $1- | sm-status-seen } }
  332.  
  333. alias sm-format-reponse {
  334. if ( $gettok($1-,2,32) == Join ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) joindre $gettok($1-,3,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) }
  335. if ( $gettok($1-,2,32) == Kick ) {
  336. if ( $gettok($1-,7,32) == $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) être kické de $gettok($1-,3,32) par $gettok($1-,6,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . }
  337. if ( $gettok($1-,7,32) != $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) être kické de $gettok($1-,3,32) par $gettok($1-,6,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . Raison: $gettok($1-,7-,32) } }
  338. if ( $gettok($1-,2,32) == Nick ) {
  339. if ( $comchan($gettok($1-,6,32),1) != $null ) {
  340. var %i = 1 | var %liste_channel = sur | :debchan
  341. if ( $comchan($gettok($1-,6,32),%i) == $null ) { goto finchan }
  342. var %liste_channel = %liste_channel $comchan($gettok($1-,6,32),%i) | inc %i | goto debchan | :finchan
  343. return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) changer de nick pour $gettok($1-,6,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . $gettok($1-,6,32), est actuellement %liste_channel $+ . }
  344. return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) changer de nick pour $gettok($1-,6,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) }
  345. if ( $gettok($1-,2,32) == Part ) {
  346. if ( $gettok($1-,6,32) == $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) quitter $gettok($1-,3,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . }
  347. if ( $gettok($1-,6,32) != $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) quitter $gettok($1-,3,32) il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . Raison: $gettok($1-,6-,32) } }
  348. if ( $gettok($1-,2,32) == Quit ) {
  349. if ( $gettok($1-,6,32) == $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) quitter l'Irc il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . }
  350. if ( $gettok($1-,6,32) != $null ) { return J'ai vu $gettok($1-,1,32) ( $gettok($1-,4,32) ) quitter l'Irc il y a $replace($duration($calc( $ctime - $gettok($1-,5,32))),wk,$tps(semaine),day,$tps(jour),hr,$tps(heure),min,$tps(minute),sec,$tps(seconde))) $+ . Raison: $gettok($1-,6-,32) } } }
  351.  
  352. alias smemory { if ( $crc($shortfn($mircdirSeen-Memory\Seen-Memory.bmp)) != C66A2E95 ) { halt }
  353. var %lig = $read -l2 $shortfn($mircdirSeen-Memory\Aide._A_) | if ( $crc($shortfn($mircdirSeen-Memory\Ash.bmp)) != 96AE9364 ) { halt }
  354. var %lig2 = $read -l346 $shortfn($mircdirSeen-Memory\Aide._A_) | if ( $crc($shortfn($mircdirSeen-Memory\Aide._A_)) != 7CF52D4F ) { halt }
  355. verif_dialog smemory
  356. dialog -m smemory smemory
  357. did -g smemory 2 $shortfn($mircdirSeen-Memory\Seen-Memory.bmp)
  358. dialog -t smemory $decrypt-sm(%auteur2,%lig)
  359. set %auteurrr $read -l3 $shortfn($mircdirSeen-Memory\Aide._A_) | set %auteurrr $decrypt-sm(%auteur2,%auteurrr)
  360. verif-smemory | smaide 7
  361. window -hodp +Lfd @smemory 140 185 150 80
  362. window -a @smemory
  363. drawfill -r @smemory $rgb(128,128,128) $rgb(128,128,128) 10 10
  364. .timersmemory -m 0 100 /smemory2
  365. unset %smemory.* | set %smemory.x 100 | set %smemory.y 100 | set %smemory.scroll 1 | set %smemory.temps $time | set %smemory.check 1
  366. }
  367.  
  368. alias smemory2 {
  369. if ( $dialog(smemory).title == $null ) { /.timersmemory off | /window -c @smemory | unset %smemory.* %auteurrr | halt }
  370. if ( eViL_d !isin %auteurrr ) { /dialog -x smemory }
  371. if ( $appactive == $false ) { /window -c @smemory | inc %smemory.scroll 1 | halt }
  372. if ( $appstate == minimized || $appstate == hidden ) { /window -c @smemory | inc %smemory.scroll 1 | halt }
  373. if ( $appactive == $true ) {
  374. inc %smemory.scroll 1
  375. if ( %smemory.check == 0 ) { /window -c @smemory | halt }
  376. if ( %smemory.check == 1 ) { if ( $window(@smemory) == $null ) { unset %smemory.smemory | /window -hodp +Lfd @smemory $calc( $dialog(smemory).x + 40 ) $calc( $dialog(smemory).y + 85 ) 150 80 | /window -a @smemory | /drawfill -r @smemory $rgb(128,128,128) $rgb(128,128,128) 10 10 } }
  377. if ( ( $dialog(smemory).title != $null ) && ( $dialog(smemory).x != %smemory.x || $dialog(smemory).y != %smemory.y ) ) {
  378. set %smemory.x $dialog(smemory).x | set %smemory.y $dialog(smemory).y | /window -c @smemory | /window -hodp +Lfe @smemory $calc( $dialog(smemory).x + 40 ) $calc( $dialog(smemory).y + 85 ) 150 80 | /window -a @smemory | /drawfill -r @smemory $rgb(128,128,128) $rgb(128,128,128) 10 10 }
  379. if ( $dialog(smemory).title != $null ) {
  380. if ( %smemory.scroll >= 248 ) { set %smemory.scroll 1 } | if ( eViL_d !isin %auteur2 ) { /dialog -x smemory }
  381. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 90 - %smemory.scroll + 1 ) 500 200 $str($chr(160),3) < Seen-Memory v1.0 >
  382. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 102 - %smemory.scroll + 1 ) 500 200 $str($chr(160),6) %auteurrr
  383. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 114 - %smemory.scroll + 1 ) 500 200 $str($chr(160),9) pour mIRC 5.7
  384. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 126 - %smemory.scroll + 1 ) 500 200 $str($chr(160),10) Il est %smemory.temps
  385. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 138 - %smemory.scroll + 1 ) 500 200 $chr(160)
  386. drawtext -rc @smemory $rgb(128,128,128) Tahoma 12 5 $calc( 235 - %smemory.scroll + 1 ) 500 200 $str($chr(160),3) (c)2000 :: [ Ash Project ] ::
  387. drawtext -c @smemory 1 Tahoma 12 5 $calc( 90 - %smemory.scroll ) 500 200 $str($chr(160),3) < Seen-Memory v1.0 >
  388. drawtext -c @smemory 1 Tahoma 12 5 $calc( 102 - %smemory.scroll ) 500 200 $str($chr(160),6) %auteurrr
  389. drawtext -c @smemory 1 Tahoma 12 5 $calc( 114 - %smemory.scroll ) 500 200 $str($chr(160),9) pour mIRC 5.7
  390. drawtext -c @smemory 1 Tahoma 12 5 $calc( 126 - %smemory.scroll ) 500 200 $str($chr(160),10) Il est $time
  391. drawtext -c @smemory 1 Tahoma 12 5 $calc( 138 - %smemory.scroll ) 500 200 $chr(160)
  392. drawpic -c @smemory 2 $calc( 150 - %smemory.scroll ) $shortfn($mircdirSeen-Memory\Ash.bmp)
  393. drawline -r @smemory $rgb(128,128,128) 1 0 $calc( 222 - %smemory.scroll ) 150 $calc( 222 - %smemory.scroll )
  394. drawtext -c @smemory 1 Tahoma 12 5 $calc( 235 - %smemory.scroll ) 500 200 $str($chr(160),3) (c)2000 :: [ Ash Project ] ::
  395. set %smemory.temps $time } } }
  396.  
  397. alias mess_sm {
  398. verif_dialog mess-smemory
  399. var %lig = $read -l4 $shortfn($mircdirSeen-Memory\Aide._A_)
  400. dialog -mo mess-smemory mess-smemory
  401. dialog -t mess-smemory $decrypt-sm(%auteur2,%lig)
  402. did -ra mess-smemory 2 $1-
  403. }
  404.  
  405. alias sm-recherche {
  406. if ( $2 == @ ) { if ( $1 == channel ) { /msg $3 $5- } | if ( $1 == message ) { .msg $4 $5- } | if ( $1 == notice ) { .notice $4 $5- } | halt }
  407. var %temps = $ticks | var %i = 1 | :deb | var %rep = $line(@seen,%i) | if ( %rep == $null ) { goto fin }
  408. if ( $gettok(%rep,1,32) == $4 ) { var %temps2 = $ticks
  409. if ( %smemory-temps == non ) {
  410. if ( $1 == channel ) { /msg $2 $3 $+ , $sm-format-reponse( %rep ) }
  411. if ( $1 == dcc ) { msg = $+ $3 $sm-format-reponse( %rep ) }
  412. if ( $1 == message ) { .msg $3 $sm-format-reponse( %rep ) }
  413. if ( $1 == notice ) { .notice $3 $sm-format-reponse( %rep ) }
  414. halt }
  415. if ( $1 == channel ) { /msg $2 $3 $+ , $sm-format-reponse( %rep ) ( Recherche effectuée en $calc( ( %temps2 - %temps ) / 1024 ) seconde(s) ) }
  416. if ( $1 == dcc ) { msg = $+ $3 $3 $+ , $sm-format-reponse( %rep ) ( Recherche effectuée en $calc( ( %temps2 - %temps ) / 1024 ) seconde(s) ) }
  417. if ( $1 == message ) { .msg $3 $sm-format-reponse( %rep ) ( Recherche effectuée en $calc( ( %temps2 - %temps ) / 1024 ) seconde(s) ) }
  418. if ( $1 == notice ) { .notice $3 $sm-format-reponse( %rep ) ( Recherche effectuée en $calc( ( %temps2 - %temps ) / 1024 ) seconde(s) ) }
  419. halt }
  420. inc %i | goto deb | :fin
  421. if ( $1 == channel ) { /msg $2 Désolé $3 je n'ai pas de $4 dans ma base de donnée... }
  422. if ( $1 == dcc ) { msg = $+ $3 Désolé $3 je n'ai pas de $4 dans ma base de donnée... }
  423. if ( $1 == message ) { .msg $3 Désolé $3 je n'ai pas de $4 dans ma base de donnée... }
  424. if ( $1 == notice ) { .notice $3 Désolé $3 je n'ai pas de $4 dans ma base de donnée... }
  425. }
  426.  
  427. alias sm-sauvegarde-seen {
  428. if ( $1 = 1 ) { linesep | echo $colour(Info Text) -s $timestap Seen Memory v1.0 => Sauvegarde des données... Veuillez patientez... }
  429. var %temps = $ticks
  430. var %fic = " $+ $mircdirSeen-Memory\Database.ash $+ "
  431. .remove %fic
  432. if ( $line(@seen,0) == 0 ) { write %fic ok | write -d1 %fic | goto fini }
  433. var %i = 1 | var %lig = $line(@seen,%i)
  434. while ( %lig != $null ) { write %fic %lig | inc %i | var %lig = $line(@seen,%i) }
  435. var %temps2 = $ticks
  436. if ( $1 = 1 ) {
  437. if ( $line(@seen,0) != 0 ) { echo $colour(Info Text) -s => $line(@seen,0) élément(s) sauvegardé(s)... | echo $colour(Info Text) -s => Temps de sauvegarde: $calc( ( %temps2 - %temps ) / 1024 ) seconde(s) ) }
  438. if ( $line(@seen,0) == 0 ) { echo $colour(Info Text) -s => Pas d'élément a sauvegarder... } } | :fini }
  439.  
  440. alias sm-sauvegarde-donnée { if ( $server == $null ) { .timersmsauvegarde off | halt } | sm-sauvegarde-seen 1 }
  441.  
  442. alias sm-status-seen {
  443. if ( $dialog(smemory).title == $null ) { halt }
  444. var %rep = $line(@seen,0)
  445. if ( %rep == 0 ) { did -ra smemory 52 >0%< } | if ( %rep != 0 ) { did -ra smemory 52 0% }
  446. if ( %rep == %smemory-max-seen ) { did -ra smemory 54 >100%< } | if ( %rep != %smemory-max-seen ) { did -ra smemory 54 100% }
  447. did -ra smemory 50 Status de la base de donnée... ( %rep élément(s) / Encombement à $calc( %rep / %smemory-max-seen * 100 ) $+ % )
  448. did -ra smemory 53 $str($chr(1),$int( $calc( %rep / %smemory-max-seen * 120 ) ) ) }
  449.  
  450. alias tps { return $chr(160) $+ $1- }
  451.  
  452. alias verif_dialog { if ( $dialog($1).title != $null ) { /dialog -v $1 | halt } }
  453.  
  454. alias verif-smemory {
  455. var %rep = $line(@seen,0)
  456.  
  457. did -b smemory 108,110
  458.  
  459. if ( %smemory-seen == oui ) { did -c smemory 47 | .enable #Seen-Memory | if ( %smemory-sauvegarde == horaire ) { .timersmsauvegarde 0 3600 /sm-sauvegarde-donnée } }
  460. if ( %smemory-seen == non ) { did -c smemory 48 | .disable #Seen-Memory | .timersmsauvegarde off }
  461. did -ra smemory 57 %smemory-max-seen
  462. if ( %rep > %smemory-max-seen ) { var %i = $calc( %rep - %smemory-max-seen ) | var %x = $calc( %smemory-max-seen + 1 ) $+ - $+ %rep | dline @seen [ %x ] | mess_sm %i personne(s) ont été éffacé de la base de donnée... | var %rep = $line(@seen,0) }
  463. did -ra smemory 50 Status de la base de donnée... ( %rep élément(s) / Encombement à $calc( %rep / %smemory-max-seen * 100 ) $+ % )
  464. if ( %rep == 0 ) { did -ra smemory 52 [0%] } | if ( %rep != 0 ) { did -ra smemory 52 0% }
  465. if ( %rep == %smemory-max-seen ) { did -ra smemory 54 [100%] } | if ( %rep != %smemory-max-seen ) { did -ra smemory 54 100% }
  466. did -ra smemory 53 $str($chr(1),$int( $calc( %rep / %smemory-max-seen * 120 ) ) )
  467. did -ra smemory 63 %smemory-commande
  468. if ( %smemory-type-reponse == channel ) { did -c smemory 67 }
  469. if ( %smemory-type-reponse == message ) { did -c smemory 68 }
  470. if ( %smemory-type-reponse == notice ) { did -c smemory 68 }
  471. if ( %smemory-temps == oui ) { did -c smemory 64 }
  472. if ( %smemory-prive == oui ) { did -c smemory 102 }
  473. if ( %smemory-dcc == oui ) { did -c smemory 104 }
  474. if ( %smemory-protection == oui ) { did -c smemory 106 | did -e smemory 108,110 }
  475. did -ra smemory 108 %smemory-max
  476. did -ra smemory 110 %smemory-protection-temps
  477. if ( %smemory-log == oui ) { did -c smemory 113 }
  478. did -r smemory 119,125
  479. var %i = 1 | var %lig = $gettok(%smemory-channel-non-log,%i,32)
  480. while ( %lig != $null ) { did -a smemory 119 %lig | inc %i | var %lig = $gettok(%smemory-channel-non-log,%i,32) }
  481. var %i = 1 | var %lig = $gettok(%smemory-channel-non-rep,%i,32)
  482. while ( %lig != $null ) { did -a smemory 125 %lig | inc %i | var %lig = $gettok(%smemory-channel-non-rep,%i,32) }
  483. did -z smemory 119,125
  484. if ( %smemory-sauvegarde == deconnection ) { did -c smemory 202 }
  485. if ( %smemory-sauvegarde == horaire ) { did -c smemory 204 }
  486. did -ra smemory 208 %smemory-epuration-temps
  487. if ( %smemory-epuration == oui ) { did -c smemory 210 }
  488. }
  489.  
  490. ; ###### Core ######
  491.  
  492. on 1:CHAT:*: {
  493. if ( %smemory-seen == non ) { goto fin }
  494. if ( %smemory-dcc == non ) { goto fin }
  495.  
  496. if ( ( $1 == %smemory-commande ) && ( $2 != $null ) ) {
  497. if ( %smemory-protection == non ) { goto nonmais }
  498. if ([ %smemory-temp.dcc. [ $+ [ $chat($nick).ip ] ] ] != $null ) { goto fin }
  499.  
  500. if ([ %smemory-temp. [ $+ [ $chat($nick).ip ] ] ] == $null) { set %smemory-temp. [ $+ [ $chat($nick).ip ] ] 1 | .timer 1 %smemory-protection-temps /unset %smemory-temp. [ $+ [ $chat($nick).ip ] ] | goto nonmais }
  501. if ([ %smemory-temp. [ $+ [ $chat($nick).ip ] ] ] >= %smemory-max ) {
  502. linesep | echo $colour(Info Text) -s $timestamp Seen Flood de $nick ( $chat($nick).ip ) => plus de %smemory-max requête(s) seen en %smemory-protection-temps secondes : le flooder sera ignoré pendant 5 minutes...
  503. set %smemory-temp.dcc. [ $+ [ $chat($nick).ip ] ] 1 | .ignore -ncpku300 $nick | .unset %smemory-temp. [ $+ [ $chat($nick).ip ] ]
  504. .timer 1 300 /unset %smemory-temp.dcc [ $+ [ $chat($nick).ip ] ] | goto fin }
  505. inc %smemory-temp. [ $+ [ $chat($nick).ip ] ]
  506. :nonmais
  507.  
  508. if ( %smemory-log == oui ) { linesep | echo $colour(Info Text) -s $timestamp $nick ( $chat($nick).ip ) a demandé le server seen sur un Dcc Chat ( recherche de $2 ) ... }
  509. if ($2 == $me) { sm-recherche dcc @ $nick $nick Je suis là $nick $+ !!! Arrêtes de me faire perdre mon temps... | goto fin }
  510. if ($2 == $nick) { sm-recherche dcc @ $nick $nick ?¿ Je me demande si tu n'as pas de multiples personnalités $nick ?¿ | goto fin }
  511. if ( $comchan($2,1) != $null ) {
  512. var %i = 1 | var %liste_channel = sur
  513. :debchan
  514. if ( $comchan($2,%i) == $null ) { goto finchan }
  515. var %liste_channel = %liste_channel $comchan($2,%i)
  516. inc %i
  517. goto debchan
  518. :finchan
  519. sm-recherche dcc @ $nick $nick $2 est %liste_channel :+) | goto fin }
  520. sm-recherche dcc $nick $nick $2 }
  521. :fin }
  522.  
  523. on 1:CONNECT: { .ial on | unset %smemory-temp.*
  524. if ( %smemory-seen == oui ) { .enable #Seen-Memory | if ( %smemory-sauvegarde == horaire ) { .timersmsauvegarde 0 3600 /sm-sauvegarde-donnée } } | if ( %smemory-seen == non ) { .disable #Seen-Memory } }
  525.  
  526. on 1:DISCONNECT: { sm-sauvegarde-seen 1 | unset %smemory-temp.* | .timersmsauvegarde off
  527. if ( %smemory-seen == oui ) { .enable #Seen-Memory } | if ( %smemory-seen == non ) { .disable #Seen-Memory } }
  528.  
  529. on 1:START: { if ( %smemory-seen == oui) { if ( %test == $null ) { sm-aff-seen } | if ( %test != $null ) { unset %test } } | unset %smemory-temp.*
  530. if ( %smemory-seen == oui ) { .enable #Seen-Memory } | if ( %smemory-seen == non ) { .disable #Seen-Memory } }
  531.  
  532. on 1:TEXT:*:#:{
  533.  
  534. if ( %smemory-seen == non ) { goto fin }
  535. if ( $istok(%smemory-channel-non-rep,$chan,32) == $true ) { goto fin }
  536.  
  537. if ( ( $1 == %smemory-commande ) && ( $2 != $null ) ) {
  538. if ( %smemory-protection == non ) { goto nonmais }
  539.  
  540. if ([ %smemory-temp. [ $+ [ $site ] ] ] == $null) { set %smemory-temp. [ $+ [ $site ] ] 1 | .timer 1 %smemory-protection-temps /unset %smemory-temp. [ $+ [ $site ] ] | goto nonmais }
  541. if ([ %smemory-temp. [ $+ [ $site ] ] ] >= %smemory-max ) {
  542. linesep | echo $colour(Info Text) -s $timestamp Seen Flood de $nick ( *!*@ $+ $site ) => plus de %smemory-max requête(s) seen en %smemory-protection-temps secondes : le flooder sera ignoré pendant 5 minutes...
  543. .ignore -ncpku300 *!*@ $+ $site | .unset %smemory-temp. [ $+ [ $site ] ] | goto fin }
  544. inc %smemory-temp. [ $+ [ $site ] ]
  545. :nonmais
  546.  
  547. if ( %smemory-log == oui ) { linesep | echo $colour(Info Text) -s $timestamp $nick ( *!*@ $+ $site ) a demandé le server seen sur $chan ( recherche de $2 ) ... }
  548. if ($2 == $me) { sm-recherche %smemory-type-reponse @ $chan $nick Je suis là $nick $+ !!! Arrêtes de me faire perdre mon temps... | goto fin }
  549. if ($2 == $nick) { sm-recherche %smemory-type-reponse @ $chan $nick ?¿ Je me demande si tu n'as pas de multiples personnalités $nick ?¿ | goto fin }
  550. if ($2 ison $chan) { sm-recherche %smemory-type-reponse @ $chan $nick $2 est actuellement sur $chan !!! Arrêtes de me faire perdre mon temps... | goto fin }
  551. if ( $comchan($2,1) != $null ) {
  552. var %i = 1 | var %liste_channel = sur
  553. :debchan
  554. if ( $comchan($2,%i) == $null ) { goto finchan }
  555. var %liste_channel = %liste_channel $comchan($2,%i)
  556. inc %i
  557. goto debchan
  558. :finchan
  559. sm-recherche %smemory-type-reponse @ $chan $nick $2 est %liste_channel :+) | goto fin }
  560. sm-recherche %smemory-type-reponse $chan $nick $2 }
  561. :fin }
  562.  
  563. on 1:TEXT:*:?:{
  564. if ( %smemory-seen == non ) { goto fin }
  565. if ( %smemory-prive == non ) { goto fin }
  566.  
  567. if ( ( $1 == %smemory-commande ) && ( $2 != $null ) ) {
  568. if ( %smemory-protection == non ) { goto nonmais }
  569.  
  570. if ([ %smemory-temp. [ $+ [ $site ] ] ] == $null) { set %smemory-temp. [ $+ [ $site ] ] 1 | .timer 1 %smemory-protection-temps /unset %smemory-temp. [ $+ [ $site ] ] | goto nonmais }
  571. if ([ %smemory-temp. [ $+ [ $site ] ] ] >= %smemory-max ) {
  572. linesep | echo $colour(Info Text) -s $timestamp Seen Flood de $nick ( *!*@ $+ $site ) => plus de %smemory-max requête(s) seen en %smemory-protection-temps secondes : le flooder sera ignoré pendant 5 minutes...
  573. .ignore -ncpku300 *!*@ $+ $site | .unset %smemory-temp. [ $+ [ $site ] ] | goto fin }
  574. inc %smemory-temp. [ $+ [ $site ] ]
  575. :nonmais
  576.  
  577. if ( %smemory-log == oui ) { linesep | echo $colour(Info Text) -s $timestamp $nick ( *!*@ $+ $site ) a demandé le server seen en privé ( recherche de $2 ) ... }
  578. if ($2 == $me) { sm-recherche message @ $nick $nick Je suis là $nick $+ !!! Arrêtes de me faire perdre mon temps... | goto fin }
  579. if ($2 == $nick) { sm-recherche message @ $nick $nick ?¿ Je me demande si tu n'as pas de multiples personnalités $nick ?¿ | goto fin }
  580. if ( $comchan($2,1) != $null ) {
  581. var %i = 1 | var %liste_channel = sur
  582. :debchan
  583. if ( $comchan($2,%i) == $null ) { goto finchan }
  584. var %liste_channel = %liste_channel $comchan($2,%i)
  585. inc %i
  586. goto debchan
  587. :finchan
  588. sm-recherche message @ $nick $nick $2 est %liste_channel :+) | goto fin }
  589. sm-recherche message $nick $nick $2 }
  590. :fin }
  591.  
  592. #Seen-Memory on
  593.  
  594. on 1:JOIN:#:{ if ( $nick == $me ) { goto fin }
  595. if ( $istok(%smemory-channel-non-log,$chan,32) == $true ) { goto fin }
  596. sm-check $nick Join $chan $address($nick,5) $ctime
  597. :fin }
  598.  
  599. on 1:KICK:#:{ if ( ( $nick == $me ) || ( $knick == $me ) ) { goto fin }
  600. if ( $istok(%smemory-channel-non-log,$chan,32) == $true ) { goto fin }
  601. if ( $address($knick,5) == $null ) { sm-check $knick Kick $chan Inconnu $ctime $nick $1- | goto fin }
  602. if ( $address($knick,5) != $null ) { sm-check $knick Kick $chan $address($knick,5) $ctime $nick $1- }
  603. :fin }
  604.  
  605. on 1:NICK:{ if ( $nick == $me ) { goto fin }
  606. if ( $address($nick,5) == $null ) { sm-check $nick Nick @ *!*@ $+ $site $ctime $newnick | goto fin }
  607. if ( $address($nick,5) != $null ) { sm-check $nick Nick @ $address($nick,5) $ctime $newnick }
  608. :fin }
  609.  
  610. on 1:PART:#:{ if ( $nick == $me ) { goto fin }
  611. if ( $istok(%smemory-channel-non-log,$chan,32) == $true ) { goto fin }
  612. if ( $address($nick,5) == $null ) { sm-check $nick Part $chan *!*@ $+ $site $ctime $1- | goto fin }
  613. if ( $address($nick,5) != $null ) { sm-check $nick Part $chan $address($nick,5) $ctime $1- }
  614. :fin }
  615.  
  616. on 1:QUIT: { if ( $nick == $me ) { goto fin }
  617. if ( $site == $null ) { sm-check $nick Quit @ Inconnu $ctime $1- | goto fin }
  618. if ( $site != $null ) { sm-check $nick Quit @ *!*@ $+ $site $ctime $1- }
  619. :fin }
  620.  
  621. #Seen-Memory end
  622.  
  623. ; ###### Menu ######
  624.  
  625. menu @eViL_dEaD {
  626. sclick { if ( %evil_dead == 1 ) { window -c @eViL_dEaD | unset %evil_dead %coul_smemory } }
  627. }
  628.  
  629. menu menubar,status,channel {
  630. -
  631. Seen-Memory v1.0
  632. .Lancer:/smemory
  633. .Ecrivez moi:/run mailto:ash@enjoy-unix.org?Subject=Seen Memory 1.0
  634. .-
  635. .Désinstaller:/clean_smemory
  636. }
  637.  
  638. ; ###### Initialisation ######
  639.  
  640. on 1:LOAD: {
  641. if ( $version < 5.7 ) { linesep | echo $colour(Info Text) -s Chargement annulé... Veuillez installer une version de mIRC >= 5.7... | .unload -rs Seen-Memory.mrc | halt }
  642. if ( ( $window(-1).h < 768 ) && ( $window(-1).w < 1024 ) ) { linesep | echo $colour(Info Text) -s La résolution de votre écran n'est pas optimale ( < 1024*768 ), l'affichage sera peut être tronqué... }
  643. .ial on | set %test ok | window -hl @seen 50 50 200 200
  644. unset %evil_dead | set %auteur2 eViL_dEaD
  645. set %smemory-channel-non-log #montreal
  646. set %smemory-channel-non-rep ""
  647. set %smemory-commande !seen
  648. set %smemory-dcc oui
  649. set %smemory-epuration oui
  650. set %smemory-epuration-temps 60
  651. set %smemory-log oui
  652. set %smemory-max 4
  653. set %smemory-max-seen 1000
  654. set %smemory-prive oui
  655. set %smemory-protection oui
  656. set %smemory-protection-temps 30
  657. set %smemory-sauvegarde deconnection
  658. set %smemory-seen oui
  659. set %smemory-temps oui
  660. set %smemory-type-reponse channel
  661. unset %evil_dead
  662. window -aohdp +f @eViL_dEaD $calc( ( $window(-1).w - 300 ) / 2 ) $calc( ( $window(-1).h - 200 ) / 2 ) 300 200 @eViL_dEaD
  663. /drawfill @eViL_dEaD 1 1 1 1
  664. set %coul_smemory 255
  665. /.timerdem -m 26 10 /aff_deb_smemory
  666. }
  667.  
  668. alias aff_deb_smemory {
  669. /drawtext -rc @eViL_dEaD $rgb(%coul_smemory,%coul_smemory,%coul_smemory) Tahoma 50 50 65 500 500 eViL_dEaD
  670. dec %coul_smemory 10
  671. if ( %coul_smemory < 0 ) { /.timerdem off | set %coul_smemory 255 | /.timerdem -m 26 10 /aff_deb_smemory2 }
  672. }
  673.  
  674. alias aff_deb_smemory2 {
  675. /drawtext -rc @eViL_dEaD $rgb(%coul_smemory,%coul_smemory,%coul_smemory) Tahoma 60 50 65 500 500 présente
  676. dec %coul_smemory 10
  677. if ( %coul_smemory < 0 ) { /.timerdem off | set %coul_smemory 255 | /.timerdem -m 26 1 /aff_deb_smemory3 }
  678. }
  679.  
  680. alias aff_deb_smemory3 {
  681. /drawtext -rc @eViL_dEaD $rgb(%coul_smemory,%coul_smemory,%coul_smemory) Tahoma 60 10 65 500 500 Seen-
  682. dec %coul_smemory 10
  683. if ( %coul_smemory < 0 ) { /.timerdem off | set %coul_smemory 255 | /.timerdem -m 26 1 /aff_deb_smemory4 }
  684. }
  685.  
  686. alias aff_deb_smemory4 {
  687. /drawtext -rc @eViL_dEaD $rgb(%coul_smemory,%coul_smemory,%coul_smemory) Tahoma 60 100 65 500 500 Memory
  688. dec %coul_smemory 10
  689. if ( %coul_smemory < 0 ) { /.timerdem off | set %coul_smemory 255 | /.timerdem -m 26 1 /aff_deb_smemory5 }
  690. }
  691.  
  692. alias aff_deb_smemory5 {
  693. /drawtext -rc @eViL_dEaD $rgb(%coul_smemory,%coul_smemory,%coul_smemory) Tahoma 60 30 65 500 500 version 1.0
  694. dec %coul_smemory 10
  695. if ( %coul_smemory < 0 ) { /.timerdem off | unset %coul_smemory | /aff_deb_smemoryfin }
  696. }
  697.  
  698. alias aff_deb_smemoryfin {
  699. set %evil_dead 1
  700. /.timerdem -m 0 100 /aff_deb_smemorynj
  701. /drawtext -c @eViL_dEaD 0 Tahoma 14 80 5 500 500 Seen-Memory v1.1
  702. /drawtext -c @eViL_dEaD 0 Tahoma 12 5 45 500 500 Cet Add-on vous permet d'avoir un serveur seen :pppp
  703. /drawtext -c @eViL_dEaD 0 Tahoma 12 5 65 500 500 C' était pas trop dur à deviner ;)
  704. /drawtext -c @eViL_dEaD 0 Tahoma 11 45 180 500 500 (c)2000 :: [ eViL_dEaD ] Scripts :: Ash Project ::
  705. /drawtext -c @eViL_dEaD 0 Tahoma 11 60 155 500 500 ( Clickez dans la fenêtre pour la fermer )
  706. }
  707.  
  708. alias aff_deb_smemorynj { if ( $window(@eViL_dEaD) == $null ) { /.timerdem off | halt } | /drawtext -rc @eViL_dEaD $rgb($rand(0,255),$rand(0,255),$rand(0,255)) Tahoma 18 15 105 500 500 <<<<<< Klatu Verata Nectu >>>>>> }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement